Lets agents search topics, read posts, manage categories and tags, find users and interact with communities on Discourse forums.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add discourse --env SITE_URL='<SITE_URL>' -- npx -y @discourse/mcp~/.codex/config.toml
[mcp_servers.discourse]
command = "npx"
args = ["-y", "@discourse/mcp"]
env = { SITE_URL = "<SITE_URL>" }
# codex mcp add discourse --env SITE_URL='<SITE_URL>' -- npx -y @discourse/mcp~/.cursor/mcp.json
{
"mcpServers": {
"discourse": {
"command": "npx",
"args": [
"-y",
"@discourse/mcp"
],
"env": {
"SITE_URL": "<SITE_URL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"discourse": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@discourse/mcp"
],
"env": {
"SITE_URL": "<SITE_URL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"discourse": {
"command": "npx",
"args": [
"-y",
"@discourse/mcp"
],
"env": {
"SITE_URL": "<SITE_URL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"discourse": {
"command": "npx",
"args": [
"-y",
"@discourse/mcp"
],
"env": {
"SITE_URL": "<SITE_URL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"discourse": {
"command": "npx",
"args": [
"-y",
"@discourse/mcp"
],
"env": {
"SITE_URL": "<SITE_URL>"
}
}
}
}Environment variables
SITE_URL
Replace the placeholders with your own credentials and keep them out of version control.