Lets agents search topics, read posts, manage categories and tags, find users and interact with communities on Discourse forums.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
SITE_URL
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。