Discourse MCP Server
for AI Agents
Connect your AI agent to StackOne's Discourse MCP server and give it 67 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
67 Agent Actions
Create, read, update, and delete across Discourse — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your Discourse MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every Discourse tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Discourse call.
Tools Discovery →What is the Discourse MCP Server?
A Discourse MCP server lets AI agents read and write Discourse data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's Discourse MCP server ships with 67 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All Discourse MCP Tools
Every action from Discourse's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
Badges
- Create Badge
Create a new custom badge (admin only).
- List Badges
List all badges available in the Discourse instance (admin only).
- Update Badge
Update the settings of an existing badge (admin only).
- Delete Badge
Permanently delete a badge (admin only).
Categorys
- Create Category
Create a new topic category (admin only).
- Get Category
Retrieve a single category by its ID.
- Update Category
Update the settings or metadata of an existing category (admin only).
Groups
- Create Group
Create a new user group in Discourse (admin only).
- List Groups
List all groups in the Discourse instance.
- Get Group
Retrieve details about a specific group by its name.
- Update Group
Update the settings or metadata of an existing group.
- Delete Group
Permanently delete a group (admin only).
Group Members
- Add Group Members
Add one or more users to a group.
- List Group Members
Get all members of a specific group.
- Remove Group Members
Remove one or more users from a group.
Posts
- Create Post
Create a new reply in an existing topic, or create a new topic with an initial post.
- Get Post
Retrieve a single post by its ID.
- Update Post
Edit the Markdown content of an existing post.
- Delete Post
Delete a post from a topic.
Private Messages
- Create Private Message
Send a private message to one or more users or groups.
- List Private Messages
Get private messages received by a specific user.
Tags
- List Tags
List all tags used in the Discourse forum.
- Get Tag
Retrieve details and topics for a specific tag.
Tag Groups
- Create Tag Group
Create a new tag group to organize related tags (admin only).
- List Tag Groups
List all tag groups defined in the Discourse instance.
- Get Tag Group
Retrieve a specific tag group by its ID.
- Update Tag Group
Update the name or tags of an existing tag group (admin only).
Topics
- Create Topic
Create a new topic in the Discourse forum.
- Get Topic
Retrieve a single topic and its posts by topic ID.
- Update Topic
Update the title, category, or tags of an existing topic.
- Delete Topic
Delete a topic and all its posts (admin or moderator only).
Users
- Create User
Create a new user account in the Discourse instance.
- List Users
List all users in the Discourse instance (admin only).
- Get User
Retrieve a user's public profile by their username.
- Update User
Update a user's profile information.
- Delete User
Permanently delete a user account (admin only).
Other (31)
- Create Post Action
Perform an action on a post such as liking, bookmarking, or flagging.
- Create Topic Timer
Schedule an automatic action on a topic at a future date and time.
- List User Badges
Get all badges earned by a specific user.
- List Categories
List all topic categories in the Discourse instance.
- List Category Topics
Get all topics in a specific category.
- Get Group By ID
Retrieve details about a specific group by its numeric ID.
- List Notifications
List notifications for the currently authenticated user.
- List Latest Posts
Get the latest posts from across all topics in the forum.
- List Post Replies
Get all direct replies to a specific post.
- List Sent Private Messages
Get private messages sent by a specific user.
- Search
Search for topics, posts, users, and categories across the Discourse forum.
- Get Site Info
Retrieve full site configuration and metadata for the Discourse instance.
- Get Site Basic Info
Retrieve basic public information about the Discourse instance.
- Get About
Retrieve public site statistics and staff information.
- List Latest Topics
Get the latest topics from the Discourse forum, sorted by recent activity.
- List Top Topics
Get the top-ranked topics filtered by time period from the Discourse forum.
- Get Topic Posts
Retrieve specific posts from a topic by their post IDs.
- List Users By Flag
List users filtered by account status flag (admin only).
- Get User By ID
Retrieve a user's full details by their numeric ID (admin only).
- List User Actions
Get a list of actions performed by a specific user.
- Get User Emails
Retrieve the email addresses associated with a user account (admin only).
- Get User By External ID
Retrieve a Discourse user by their external system ID (SSO/Discourse Connect lookup).
- Update Topic Status
Enable or disable a status flag on a topic (close, pin, archive, hide, etc.).
- Mark Notifications Read
Mark one or all notifications as read for the authenticated user.
- Lock Post
Lock or unlock a post to prevent or allow editing.
- Activate User
Activate a pending user account (admin only).
- Deactivate User
Deactivate a user account to prevent them from logging in (admin only).
- Suspend User
Suspend a user account until a specified date (admin only).
- Log Out User
Force-log out a user's current session (admin only).
- Silence User
Silence a user to prevent them from posting without fully suspending their account (admin only).
- Anonymize User
Permanently anonymize a user by replacing all identifying information with random values (admin only).
Discourse AI Agent Use Cases
Connect your AI agent to Discourse and help your team scale the support operations they run by hand today.
Use StackOne to connect your AI agent to your helpdesk, CRM, and messaging tools to automate ticket triage and priority routing.
ViewUse StackOne to connect your AI agent to your telephony, CRM, and messaging tools to automate voice call summarization and CRM logging.
ViewUse StackOne to connect your AI agent to your helpdesk, CRM, and messaging tools to automate SLA breach prediction and escalation.
ViewSet Up Your Discourse MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to Discourse in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More Customer Support MCP Servers
113+ actions
104+ actions
92+ actions
77+ actions
73+ actions
69+ actions
65+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
Discourse MCP Server FAQ
Does StackOne have a Discourse MCP server?
Discourse MCP server vs direct API integration — what's the difference?
How does Discourse authentication work for AI agents?
origin_owner_id.Are Discourse MCP tools vulnerable to prompt injection?
What is the context bloat of a Discourse agent and how do I avoid it?
Can I limit which actions my Discourse agent can access?
Can I create custom agent actions for my Discourse MCP server?
When should I NOT use a Discourse MCP server?
What AI frameworks and AI clients does the StackOne Discourse MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.