langchain-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@langchain-mcpfind python code for creating a chat model"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: LangChain Documentation MCP Server
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/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Cursor
macOS/Linux:
~/.cursor/mcp.jsonWindows:
%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
Tool | Description | Parameters |
| Search documentation, references, and tutorials |
|
| Search LangChain source code |
|
| Search LangGraph source code |
|
| Search DeepAgents source code |
|
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:
{
"embedding": {
"provider": "openrouter",
"model": "qwen/qwen3-embedding-8b"
},
"chromadb": {
"path": "./data/chroma"
},
"chunking": {
"docs": { "chunk_size": 2000, "chunk_overlap": 200 },
"code": { "chunk_size": 4000, "chunk_overlap": 200 }
},
"repos": [
{
"name": "langchain",
"url": "https://github.com/langchain-ai/langchain",
"type": "code",
"languages": ["python", "javascript"]
}
]
}Supported Embedding Providers
sentence-transformer(local)openaicoheregoogleollamaopenrouter(default)
See ChromaDB Integrations for more options.
Deployment
The project includes automated deployment scripts for VPS hosting:
# Manual deployment
./deploy.sh
# GitHub Actions (production branch)
git push origin main:productionDeployment includes:
Code synchronization via rsync
Automatic npm installation and build
PM2 process management
Nginx static file serving
Environment variable management
Roadmap
Semantic search across docs and code
Google OAuth authentication
Usage tracking and credits system
MCP registry registration
Claude Code, Desktop, and Cursor support
Rate limiting (per user / per IP)
Additional embedding model options
Local mode (no API key required)
Browser extension for quick searches
VSCode extension integration
Contributing
Forking and contributions are welcome!
Support
Website: langchain-mcp.xyz
Issues: GitHub Issues
Donate: Support development at Ko-fi
License
MIT License - see the LICENSE file for details.
Built with ❤️ by baixianger
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/baixianger/langchain-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server