Skip to content
LangChain

Filesystem for LangChain

io.github.domdomegg/filesystem-mcp

Read, create, and edit files.

client:LangChain transport:stdio runtime:npm

Install Filesystem in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Filesystem in other clients