Discourse MCP by usefulapi
Search topics and posts; create topics, reply and mark notifications read in Discourse.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (2)
- LOWin discourse_list_private_messages
- LOWin discourse_mark_notifications_read
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"discourse": {
"url": "https://discourse.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://discourse.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (14)
🟢discourse_search(query, page)
Search topics, posts, users and categories of the forum for a term. Returns matching posts and topics with their ids. Discourse API: GET /search.json?q=.
Eingabe-Schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Search term; supports Discourse search syntax such as in:title or #category."
},
"page": {
"description": "Page number, starting at 0.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_list_latest_topics(order, ascending, per_page, page)
List the latest topics of the forum, newest activity first by default. Discourse API: GET /latest.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"order": {
"description": "Sort order (default: activity).",
"type": "string",
"enum": [
"default",
"created",
"activity",
"views",
"posts",
"likes",
"op_likes"
]
},
"ascending": {
"description": "Sort ascending instead of descending.",
"type": "boolean"
},
"per_page": {
"description": "Topics per page.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"page": {
"description": "Page number, starting at 0.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_list_top_topics(period, per_page)
List the top topics of the forum for a period. Discourse API: GET /top.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"period": {
"description": "Period (default: all).",
"type": "string",
"enum": [
"all",
"yearly",
"quarterly",
"monthly",
"weekly",
"daily"
]
},
"per_page": {
"description": "Topics per page.",
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_get_topic(topic_id)
Get one topic with its title, category, tags and the first posts of its post stream. Discourse API: GET /t/{id}.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"topic_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Numeric id."
}
},
"required": [
"topic_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_get_post(post_id)
Get one post with its raw Markdown, author and cooked HTML. Discourse API: GET /posts/{id}.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"post_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Numeric id."
}
},
"required": [
"post_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_list_categories(include_subcategories)
List the categories of the forum with their ids, slugs and colours. Discourse API: GET /categories.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"include_subcategories": {
"description": "Include subcategories in the list.",
"type": "boolean"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_list_tags
List the tags of the forum with their topic counts. Discourse API: GET /tags.json.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_get_user(username)
Get a user's profile by username: name, trust level, groups and activity counts. Discourse API: GET /u/{username}.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"username": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,60}$",
"description": "Forum username."
}
},
"required": [
"username"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_list_notifications
List the notifications of the user the key acts as: replies, mentions, likes and messages. Discourse API: GET /notifications.json.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_list_private_messages(username)
List the private message topics received by a user. Discourse API: GET /topics/private-messages/{username}.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"username": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]{1,60}$",
"description": "Forum username."
}
},
"required": [
"username"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢discourse_get_site_info
Get the forum's basic information: title, description, logo and version. Discourse API: GET /site/basic-info.json.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴discourse_create_topic(title, raw, category_id)
Create a new public topic in a category as the key's user. Publishes content on the forum: confirm the text first. Discourse API: POST /posts.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Topic title."
},
"raw": {
"type": "string",
"minLength": 1,
"maxLength": 32000,
"description": "First post body in Markdown."
},
"category_id": {
"description": "Category id (from discourse_list_categories).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"title",
"raw"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴discourse_reply_to_topic(topic_id, raw, reply_to_post_number)
Post a reply in an existing topic as the key's user. Publishes content on the forum: confirm the text first. Discourse API: POST /posts.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"topic_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Numeric id."
},
"raw": {
"type": "string",
"minLength": 1,
"maxLength": 32000,
"description": "Reply body in Markdown."
},
"reply_to_post_number": {
"description": "Post number this reply answers.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"topic_id",
"raw"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡discourse_mark_notifications_read(id)
Mark all notifications of the key's user as read, or one notification by id. Discourse API: PUT /notifications/mark-read.json.
Eingabe-Schema
{
"type": "object",
"properties": {
"id": {
"description": "Notification id; omit to mark all as read.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis