Discord MCP for VS Code
io.github.hypark5540/discord-mcp
Safe Discord access for reading guild data and optionally managing bot messages
client:VS Code
transport:stdio
runtime:npm
Install Discord MCP in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "discord-token",
"description": "DISCORD_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "discord-enable-writes",
"description": "DISCORD_ENABLE_WRITES",
"password": true
},
{
"type": "promptString",
"id": "discord-enable-deletes",
"description": "DISCORD_ENABLE_DELETES",
"password": true
},
{
"type": "promptString",
"id": "discord-allow-unrestricted-writes",
"description": "DISCORD_ALLOW_UNRESTRICTED_WRITES",
"password": true
},
{
"type": "promptString",
"id": "discord-allowed-guild-ids",
"description": "DISCORD_ALLOWED_GUILD_IDS",
"password": true
},
{
"type": "promptString",
"id": "discord-allowed-channel-ids",
"description": "DISCORD_ALLOWED_CHANNEL_IDS",
"password": true
},
{
"type": "promptString",
"id": "discord-max-response-chars",
"description": "DISCORD_MAX_RESPONSE_CHARS",
"password": true
}
],
"servers": {
"discord-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hypark5540/discord-mcp"
],
"env": {
"DISCORD_TOKEN": "${input:discord-token}",
"DISCORD_ENABLE_WRITES": "${input:discord-enable-writes}",
"DISCORD_ENABLE_DELETES": "${input:discord-enable-deletes}",
"DISCORD_ALLOW_UNRESTRICTED_WRITES": "${input:discord-allow-unrestricted-writes}",
"DISCORD_ALLOWED_GUILD_IDS": "${input:discord-allowed-guild-ids}",
"DISCORD_ALLOWED_CHANNEL_IDS": "${input:discord-allowed-channel-ids}",
"DISCORD_MAX_RESPONSE_CHARS": "${input:discord-max-response-chars}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs