Langchain MCP server
io.github.baixianger/langchain-mcp·v2.0.0·4 starsLangChain/LangGraph/DeepAgents knowledge + LangGraph agent debugging (Polly-like)
4 stars
Reviews
Write oneNobody has reviewed Langchain yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Langchain tools (10, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
langgraph_analyze_traceFetch trace data for AI analysis (Polly-like). Returns structured trace data with optional question for analysis. Ask about errors, suggest improvements, identify inefficiencies.
langgraph_get_runwrite actionGet detailed trace information for a specific run, including input, output, and execution details.
langgraph_get_threadGet detailed information about a specific thread including its current values and metadata.
langgraph_get_thread_stateGet the current state/checkpoint of a thread, including state values, pending tasks, and next nodes.
langgraph_list_runsList runs (executions) for a specific thread. Use this to find specific runs to inspect.
langgraph_list_threadsList conversation threads from a local LangGraph dev server. Use this to find threads to debug. Requires a running LangGraph server (langgraph dev).
search_deepagents_codeSearch DeepAgents source code. Returns relevant code snippets.
search_docsSearch documentation, references, and tutorials about LangChain, LangGraph, LangSmith, and DeepAgents.
search_langchain_codeSearch LangChain source code. Returns relevant code snippets.
search_langgraph_codeSearch LangGraph source code. Returns relevant code snippets.
Public scan report
scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it
- Code scan13 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 74 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Langchain compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 80% of 4,460 AI and agents servers
- Tools
- 10
- the typical AI and agents server has 6
- Tools that change things
- 10%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 4
- more than 77% of 2,711 AI and agents servers
What its tools let an agent do: 9 read · 1 change
Install Langchain in Claude Code, Cursor or VS Code
Runs npx -y langchain-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add langchain-mcp -- npx -y langchain-mcp
What the publisher says
From the Langchain repository's README, as published. We do not edit it. Read it on GitHub
LangChain MCP
Give your AI assistant complete knowledge of LangChain, LangGraph & LangSmith
Website • Installation • Features • Documentation
Overview
LangChain MCP is a Model Context Protocol (MCP) server that provides semantic search across the entire LangChain ecosystem. Build AI applications faster with instant access to documentation and source code for LangChain, LangGraph, LangSmith, and DeepAgents.
Features
- Semantic Search - Natural language queries across all LangChain ecosystem docs
- Source Code Search - Find code examples in Python and JavaScript repositories
- MCP Protocol - Works seamlessly with Claude Code, Claude Desktop, Cursor, and any MCP-compatible client
- Production Ready - Scalable API with authentication and usage tracking
- Fast & Accurate - Powered by ChromaDB and OpenRouter embeddings
Installation
Quick Start (Recommended)
# Install globally
npm install -g langchain-mcp
# Login with Google
langchain-mcp login
# Add to Claude Code
claude mcp add langchain-mcp -- npx langchain-mcpManual Configuration
Add the following configuration to your client's config file:
Claude Desktop
- macOS: ~/Library/Application Support/Claude/claudedesktopconfig.json
- Windows: %APPDATA%\Claude\claudedesktopconfig.json
Cursor
- macOS/Linux: ~/.cursor/mcp.json
- Windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"langchain-mcp": {
"command": "npx",
"args": ["langchain-mcp"]
}
}
}Usage
CLI Commands
langchain-mcp login # Login via Google OAuth
langchain-mcp status # Check usage and remaining credits
langchain-mcp logout # Logout and clear credentialsAvailable MCP Tools
Pricing
- Free tier available for new users
- Donation bonus for supporters
Documentation
Self-deploy
Project Structure
langchain-MCP/
├── packages/
│ ├── ingest/ # Python - Data ingestion (uv)
│ ├── api/ # TypeScript - API server (Express)
│ ├── mcp-server/ # TypeScript - MCP client (npm package)
│ └── mcp-server-local/ # TypeScript - Local MCP server (dev)
├── config/
│ └── settings.json # Shared configuration
└── deploy.sh # Deployment scriptArchitecture
Setup Development Environment
1. Ingest Documentation & Source Code
cd packages/ingest
uv sync
uv run ingest --list # List available repositories
uv run ingest docs # Ingest documentation only
uv run ingest # Ingest all (docs + code)2. Run API Server
cd packages/api
npm install
npm run dev # Development server on port 30003. Test Local MCP Server
cd packages/mcp-server-local
npm install
npm run devConfiguration
All settings in config/settings.json:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Langchain: common questions
- Is Langchain MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the Langchain safety report
- How do I install Langchain?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Langchain need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Langchain maintained?
- The last commit was 108 days ago (2026-07-19). The latest release is v2.0.0.
- What can I use instead of Langchain?
- Servers from other publishers that do the same job: Basic Memory MCP server, IWE (iwe.md) MCP server and Total Agent Memory MCP server.
- How does Langchain compare with other AI and agents MCP servers?
- safety score 88/100 (higher than 80% of 4,460 AI and agents servers); tools 10 (the typical AI and agents server has 6); tools that change things 10% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Langchain
Same job from other publishers: the closest match first, then the best rated.
- Basic MemoryLocal-first knowledge management with bi-directional LLM sync via Markdown files.not reviewedWidely usedB
- IWE (iwe.md)Markdown knowledge base as agent memory. Runs against the notes directory it is started in.not reviewedEstablishedA
- Total Agent MemoryPersistent local memory for coding agents: temporal knowledge graph, procedural and episodic recallnot reviewedEstablishedA