Discourse MCP by usefulapi for LangChain
io.usefulapi/discourse
Search topics and posts; create topics, reply and mark notifications read in Discourse.
client:LangChain
transport:streamable-http
tools:14
Install Discourse MCP by usefulapi in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"discourse": {
"transport": "streamable_http",
"url": "https://discourse.usefulapi.io/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- discourse_search
- discourse_list_latest_topics
- discourse_list_top_topics
- discourse_get_topic
- discourse_get_post
- discourse_list_categories
- discourse_list_tags
- discourse_get_user
- discourse_list_notifications
- discourse_list_private_messages
- discourse_get_site_info
- discourse_create_topic
- discourse_reply_to_topic
- discourse_mark_notifications_read