Skip to content
LangChain

bash command mcp for LangChain

io.github.mrorigo/bash-command-mcp

Sophisticated bash command MCP server that runs and manages shell execution.

client:LangChain transport:stdio runtime:npm

Install bash command mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

bash command mcp in other clients