Discourse MCP by usefulapi
Search topics and posts; create topics, reply and mark notifications read in Discourse.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (2)
- LOWen discourse_list_private_messages
- LOWen discourse_mark_notifications_read
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"discourse": {
"url": "https://discourse.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://discourse.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (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=.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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"
}Comunidad
Evidencia