loading…
Search for a command to run...
loading…
Provides Discord user presence information through the Lanyard API, enabling AI assistants to retrieve real-time presence data like online status, Spotify activ
Provides Discord user presence information through the Lanyard API, enabling AI assistants to retrieve real-time presence data like online status, Spotify activity, and custom KV data.
A Model Context Protocol (MCP) server that provides Discord user presence information through the Lanyard API.
This MCP server provides a secure interface for AI assistants to retrieve real-time Discord presence data, including online status, Spotify activity, Discord activities, and custom KV data for Discord users via the Lanyard service.
get_user_presence - Get complete Discord presence information including status, platform info, Spotify, activities, and KV dataget_user_spotify - Get detailed Spotify listening information with track details and timestampsget_user_kv - Retrieve custom Lanyard KV (key-value) data set by the userAll tools include:
docker mcp command)docker build -t lanyard-mcp-server:latest .
Copy the custom catalog configuration:
# Copy custom.yaml to your Docker MCP catalogs directory
cp custom.yaml ~/.docker/mcp/catalogs/custom.yaml
If using Visual Studio Code with MCP support:
# Copy the MCP configuration to your project
cp .vscode/mcp.json /path/to/your/project/.vscode/
# Import the catalog
docker mcp catalog import custom.yaml
# Enable the Lanyard server
docker mcp server enable lanyard
When working with AI agents that have access to this MCP server, you can use these example commands:
docker mcp tools call get_user_presence user_id=77488778255540224
docker mcp tools call get_user_spotify user_id=77488778255540224
docker mcp tools call get_user_kv user_id=77488778255540224
In Claude Desktop, you can ask:
Lanyard is a service that exposes Discord user presence data through a REST API and WebSocket. Users must opt-in by joining the Lanyard Discord server. This MCP server uses the REST API to fetch user presence information.
AI Agent → MCP Gateway → Lanyard MCP Server → Lanyard API ↓ Discord Presence Data
# Run directly
python lanyard_server.py
# Test MCP protocol
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | python lanyard_server.py
# Test with a known user ID (Lanyard creator)
echo '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"get_user_presence","arguments":{"user_id":"94490510688792576"}},"id":2}' | python lanyard_server.py
Adding New Tools
Tools Not Appearing
docker images | grep lanyard~/.docker/mcp/catalogs/"User not found" Errors
Rate Limit Errors
This server uses the Lanyard REST API:
Security Considerations
94490510688792576 - Phineas (Lanyard creator) 77488778255540224 - b6d (MCP integration)
Find more users by joining the Lanyard Discord server.
Выполни в терминале:
claude mcp add lanyard-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.