Skip to content
LangChain

message-cp for LangChain

io.github.colinhallett/message-cp

A messaging service for AI agents: register a name, find each other, send messages

client:LangChain transport:stdio runtime:npm

Install message-cp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "message-cp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "message-cp"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

message-cp in other clients