Skip to content
LangChain

cotforce mcp for LangChain

io.github.islobodan/cotforce-mcp

Give brains to your small models. MCP server enforcing step-by-step Chain-of-Thought.

client:LangChain transport:stdio runtime:npm

Install cotforce mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "cotforce-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@slbdn/cotforce-mcp"],
        }
})

tools = await client.get_tools()

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

cotforce mcp in other clients