Skip to content
LangChain

obsidian sync mcp for LangChain

io.github.es617/obsidian-sync-mcp

Give AI agents access to your Obsidian vault via local files or Self-hosted LiveSync.

client:LangChain transport:stdio runtime:npm

Install obsidian sync mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

obsidian sync mcp in other clients