---
title: Cloudflare Community MCP Server
description: Learn how to use the Cloudflare Community MCP server to search topics, read posts, and filter content.
image: https://developers.cloudflare.com/dev-products-preview.png
---

[Skip to content](#%5Ftop) 

Was this helpful?

YesNo

[ Edit page ](https://github.com/cloudflare/cloudflare-docs/edit/production/src/content/docs/agents/community-mcp-server.mdx) [ Report issue ](https://github.com/cloudflare/cloudflare-docs/issues/new/choose) 

Copy page

# Cloudflare Community MCP Server

The MCP server for the [Cloudflare Community forum ↗](https://community.cloudflare.com) lets AI agents search topics, read posts, look up users, and filter content.

The server is powered by [@discourse/mcp ↗](https://www.npmjs.com/package/@discourse/mcp), the official Discourse MCP server.

## Install

Terminal window

```

npx @discourse/mcp@latest


```

## Configure

### OpenCode

Add to `~/.config/opencode/opencode.jsonc` inside the `"mcp"` block:

```

"discourse": {

  "type": "local",

  "command": ["npx", "-y", "@discourse/mcp@latest"],

  "enabled": true

}


```

### Claude Desktop

Add to `claude_desktop_config.json`:

```

{

  "mcpServers": {

    "discourse": {

      "command": "npx",

      "args": ["-y", "@discourse/mcp@latest"]

    }

  }

}


```

### Cursor

Add to `.cursor/mcp.json` in your project root:

```

{

  "mcpServers": {

    "discourse": {

      "command": "npx",

      "args": ["-y", "@discourse/mcp@latest"]

    }

  }

}


```

## Connect to the Cloudflare Community

After configuring your client, use the `discourse_select_site` tool with:

```

https://community.cloudflare.com


```

No API key is needed for reading public data. An API key is only required for write operations (posting, moderation).

## Available tools

| Tool                         | Description                              |
| ---------------------------- | ---------------------------------------- |
| discourse\_select\_site      | Connect to community.cloudflare.com      |
| discourse\_search            | Full-text search across topics and posts |
| discourse\_filter\_topics    | Filter by category, tags, status, dates  |
| discourse\_read\_topic       | Read a topic's posts and metadata        |
| discourse\_read\_post        | Read a specific post                     |
| discourse\_get\_user         | Look up a user's profile                 |
| discourse\_list\_user\_posts | List posts by a user                     |

## Example usage

Once connected, you can ask your AI assistant things like:

* "Search the Cloudflare community for topics about Error 522"
* "Find unanswered topics in the SSL category from the last 3 days"
* "Read topic 42325 and summarize the issue"
* "Show me recent replies from user sandro"

## Machine-readable discovery

AI agents can automatically discover the MCP server through these endpoints on community.cloudflare.com:

* [/.well-known/mcp.json ↗](https://community.cloudflare.com/.well-known/mcp.json) — MCP Server Card
* [/llms.txt ↗](https://community.cloudflare.com/llms.txt) — LLMs.txt with server info and install instructions
* [/.well-known/agent.json ↗](https://community.cloudflare.com/.well-known/agent.json) — A2A Agent Card

## Related resources

* [Setup guide with detailed configuration instructions ↗](https://community.cloudflare.com/mcp)
* [The official npm: @discourse/mcp package ↗](https://www.npmjs.com/package/@discourse/mcp)
* [Model Context Protocol specification ↗](https://modelcontextprotocol.io)
* [Building AI agents on Cloudflare](https://developers.cloudflare.com/agents/)
* [Cloudflare Community forum ↗](https://community.cloudflare.com)

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/agents/","name":"Agents"}},{"@type":"ListItem","position":3,"item":{"@id":"/agents/community-mcp-server/","name":"Cloudflare Community MCP Server"}}]}
```
