Install guide · VS Code
Install Discord for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
Open .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "dasred-discord-mcp": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/dasred/discord-mcp:1.2.2" ], "env": { "DISCORD_MCP_DISCORD_EMAIL": "", "DISCORD_MCP_DISCORD_PASSWORD": "YOUR_DISCORD_MCP_DISCORD_PASSWORD", "DISCORD_MCP_DISCORD_TOTP_SECRET": "YOUR_DISCORD_MCP_DISCORD_TOTP_SECRET", "DISCORD_MCP_DISCORD_TOKEN": "YOUR_DISCORD_MCP_DISCORD_TOKEN", "DISCORD_MCP_READ_ONLY": "true", "DISCORD_MCP_AUTH_TOKEN": "YOUR_DISCORD_MCP_AUTH_TOKEN", "DISCORD_MCP_SERVER_LOG_LEVEL": "info" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |