Skip to content
LangChain

mcp filesystem for LangChain

io.github.digital-defiance/mcp-filesystem

Advanced filesystem operations with strict security boundaries for AI agents

client:LangChain transport:stdio runtime:npm

Install mcp filesystem in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp-filesystem": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@ai-capabilities-suite/mcp-filesystem"],
        }
})

tools = await client.get_tools()

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

mcp filesystem in other clients