mcp
MCP server by discourse Community
Connects AI assistants to Discourse forums through a Model Context Protocol stdio server. It exposes forum search, topic and post reads, and optional write tools for site owners and forum developers.
Install mcp
Built from the published package, never by AI.
claude mcp add mcp -- npx -y @discourse/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp": {
"args": [
"-y",
"@discourse/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp": {
"args": [
"-y",
"@discourse/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp": {
"args": [
"-y",
"@discourse/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp -- npx -y @discourse/mcp{
"mcpServers": {
"mcp": {
"args": [
"-y",
"@discourse/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp npx -y @discourse/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp block.
About
Discourse MCP is a Model Context Protocol server written in TypeScript. It exposes Discourse forum capabilities as tools and resources that AI agents can call. It runs over standard input and output by default, and it can also run as a loopback-only Streamable HTTP server. It is installed with npx as the @discourse/mcp package, which provides a discourse-mcp binary.
The server is read-only by default. Writes, such as creating posts, topics, categories, or uploads, are only registered when the operator passes the --allow_writes flag and supplies a matching auth_pairs entry for the selected site. Operators can choose a site at runtime with discourse_select_site or tether the server to one site with --site. Toolsets let operators limit which built-in domains are exposed. The project is aimed at developers and operators who want AI assistants to work with a Discourse community.
Written from the project's README and checked against it.
Tools it gives your assistant
discourse_select_siteChooses the target Discourse site at runtime and validates it via /about.json.discourse_searchSearches topics on the selected Discourse site as part of the default tool catalog.discourse_filter_topicsFilters topics on the selected Discourse site as part of the default tool catalog.discourse_read_topicReads a topic, with per-post content limited by the max-read-length setting.discourse_read_postReads a single post, preferring raw content by requesting include_raw=true.discourse_read_private_messageReads a private message, which requires an authenticated matching site.discourse_upload_fileUploads a local file, but only when allowed_upload_paths is set and the file is in an allowed directory.
What you need
- Node.js 24 or later
- A Discourse site URL
- Admin API key or User API key for authenticated access and writes
- Discourse site credentials if it is behind HTTP Basic Auth
Try asking
- Use discourse_select_site to connect to https://try.discourse.org and list recent topics.
- Search the forum for topics tagged ai and summarize the top results.
- Read the topic with the given ID and show the first post's raw content.
Good to know
- Writes are disabled by default and need the --allow_writes flag plus a matching auth entry.
- Write actions are rate limited to about one request per second.
- Private message access requires an authenticated site because PM data is never public.
- HTTP transport supports one stateful MCP client session per process.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mcp
All alternatives →Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.
Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.
Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.
Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.
Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.
Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.
Compare with Agent Skills Search Server, Exa or Apify
mcp: common questions
Does Discourse MCP let an AI assistant change my forum?
Not by default. Built-in write tools are only registered when --allow_writes is enabled and a matching auth_pairs entry exists for the selected site.
Can I run Discourse MCP against one site only?
Yes. Passing --site tethers the server to a single site at startup and hides discourse_select_site.
How do I keep API keys out of the command line?
The source recommends a profile JSON file passed with --profile, which holds the auth_pairs entries and other settings.
How do I install mcp?
In Claude Code run claude mcp add mcp -- npx -y @discourse/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp the official server?
mcp is a community project by discourse, not verified by a company domain.
Is mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mcp safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mcp?
Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).
Does mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
