Integration

Discourse integration

Discourse REST API for a self-hosted forum: create topics, replies and private messages, read and edit posts, close, pin or archive topics, browse the latest and per-category topic lists, create and list categories, run a full-text search, create and inspect user accounts, list users by moderation flag and like a post. Authentication uses an admin or user API key plus the username the call acts as, both sent as headers.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Discourse.Built from the 18 Discourse tools below, on the connection you add once.

Common Discourse use cases

  • removing a spam thread
  • quoting an existing post
  • summarising a discussion
  • auditing suspended accounts
  • acknowledging a helpful answer
  • fixing a typo in a topic title
  • triaging an inbox automatically
  • closing a resolved support thread
  • correcting a published announcement
  • choosing where to publish a new topic

What you can do with Discourse

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Topic, 6 operations

  • delete_topicDelete topicDELETEAgents: ask firstRemoves a whole topic.
  • get_topicGet topicGETAgents: ask firstReads a topic and the posts it currently shows.
  • list_category_topicsList category topicsGETAgents: ask firstReturns the topics of a single category.
  • list_latest_topicsList latest topicsGETAgents: ask firstReturns the latest topics with their activity counters.
  • set_topic_statusSet topic statusPUTAgents: ask firstSwitches one moderation flag on a topic on or off.
  • update_topicUpdate topicPUTAgents: ask firstRenames a topic or moves it to another category.

Post, 5 operations

  • create_postCreate postPOSTAgents: ask firstPublishes forum content: a new topic, a reply, or a private message.
  • delete_postDelete postDELETEAgents: ask firstRemoves a post from a topic.
  • get_postGet postGETAgents: ask firstReads one post by its identifier.
  • like_postLike postPOSTAgents: ask firstLikes a post, or applies another post action by its type code.
  • update_postUpdate postPUTAgents: ask firstEdits a post and optionally records why it changed.

User, 3 operations

  • create_userCreate userPOSTAgents: ask firstRegisters a new forum member.
  • get_userGet userGETAgents: ask firstReads one member profile.
  • list_users_by_flagList users by flagGETAgents: ask firstReturns accounts in one moderation bucket, such as new, staff or suspended.

Category, 2 operations

  • create_categoryCreate categoryPOSTAgents: ask firstAdds a category to the forum.
  • list_categoriesList categoriesGETAgents: ask firstReturns every category with its identifier, slug and counters.

Message, 1 operation

  • list_user_private_messagesList user private messagesGETAgents: ask firstReturns the private message threads of one member.

Search, 1 operation

  • searchSearchGETAgents: ask firstSearches the forum and returns matching posts, topics, users and categories.

Use Discourse from Claude Code, Cursor or Codex

Connect Discourse in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Discourse operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Discourse

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Discourse once

    Add your Discourse connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Discourse integration FAQ

What can you do with the Discourse integration?

LiveContext exposes 18 operations on Discourse, covering topic, post, user and category. Common uses include removing a spam thread, quoting an existing post and summarising a discussion.

Popular integrations

Browse the whole catalog