Langchain MCP logo

Langchain MCP

Searches LangChain ecosystem documentation and Python or JavaScript source code through four MCP tools.

Install Langchain MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "langchain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "langchain-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 9 tools correctly ().

Overview

The langchain-mcp MCP server provides semantic search over LangChain, LangGraph, LangSmith, and DeepAgents documentation and source code. Its MCP tools cover general documentation queries plus separate searches for LangChain, LangGraph, and DeepAgents repositories, with language and result-limit filters for code searches. Install the npm package, authenticate with Google, and run it through an MCP-compatible client when an agent needs implementation references or tutorials. The project also includes a self-deployment layout with an API, ingestion pipeline, ChromaDB storage, and configurable embedding providers.

Use cases

  • Search LangChain documentation for API usage and tutorials
  • Find Python or JavaScript implementations in LangChain source
  • Inspect LangGraph source patterns for an agent workflow
  • Look up DeepAgents repository code by natural-language query

Key features

  • Semantic search across LangChain ecosystem documentation
  • Source-code search for LangChain, LangGraph, and DeepAgents
  • Python and JavaScript filters for code queries
  • MCP access through an npm package
  • Configurable ChromaDB and embedding providers for self-deployment

Tools9

What Langchain MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 80d

What it can do

From the 9 tools this server returned when we ran it.

Read-only tools · 9
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age298 days
Maintainers1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · langchain-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
npm downloads565Package downloads in the last 30 days.
Last commit4mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed9Callable tools this server registers over MCP.

How Langchain MCP works

What langchain-mcp does

The langchain-mcp MCP server lets an AI client search material from the LangChain ecosystem without requiring the client to browse repositories manually. Its indexed content includes documentation, references, tutorials, and source code associated with LangChain, LangGraph, LangSmith, and DeepAgents. The available searches are intended for questions such as finding an API example, locating an implementation pattern, or checking how a feature is represented in a repository.

The langchain-mcp MCP server exposes four tools. search_docs searches documentation, references, and tutorials. search_langchain_code, search_langgraph_code, and search_deepagents_code search source repositories. Code searches accept a natural-language query, a language selection of Python or JavaScript, and a result limit; documentation search accepts a query and limit, with five as the documented default.

How it works

The langchain-mcp MCP server uses semantic search rather than only exact text matching. The project documentation describes an ingestion process that collects documentation and repository code, divides it into chunks, creates embeddings, and stores the indexed data in ChromaDB. The default embedding configuration uses OpenRouter with qwen/qwen3-embedding-8b, while the self-deployment configuration lists local Sentence Transformers, OpenAI, Cohere, Google, Ollama, and OpenRouter as supported provider choices.

For normal client use, the npm package starts the MCP process through npx. Google OAuth is used by the CLI login flow. A local development setup is available in the repository, but the roadmap identifies a future local mode without an API key as unfinished, so the current material does not establish that such a mode is available to end users.

Setup and configuration

Install the package globally with npm, then authenticate and register the command with an MCP client:

Terminal
npm install -g langchain-mcp
langchain-mcp login
claude mcp add langchain-mcp -- npx langchain-mcp

The manual configuration uses a server entry with npx as the command and langchain-mcp as its argument. The README gives configuration locations for Claude Desktop and Cursor on macOS, Windows, and Linux where applicable. The CLI also provides status to inspect usage and remaining credits, and logout to remove stored credentials.

For self-deployment or development, the repository separates ingestion, the TypeScript API, a packaged MCP server, and a local MCP server. Documentation and code can be ingested with the Python package under packages/ingest; the API runs from packages/api, and the local MCP development process runs from packages/mcp-server-local. Shared settings include embedding provider and model, ChromaDB path, document and code chunk sizes, overlap values, and repository definitions.

Tools and capabilities

  • search_docs: searches documentation, references, and tutorials.
  • search_langchain_code: searches LangChain source code in Python or JavaScript.
  • search_langgraph_code: searches LangGraph source code in Python or JavaScript.
  • search_deepagents_code: searches DeepAgents source code in Python or JavaScript.

All four tools are exposed over MCP and can be used by Claude Code, Claude Desktop, Cursor, or another MCP-compatible client.

Limitations and notes

The indexed scope is centered on the named LangChain ecosystem projects; the material does not claim general-purpose web or repository search. Code language filtering is documented only for Python and JavaScript. Rate limiting, a browser extension, a VS Code extension, additional embedding model options, and keyless local mode appear on the roadmap rather than as completed capabilities. Self-hosting also requires the repository's ingestion, API, storage, and deployment components, so it is a separate setup from installing the npm client package.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Langchain MCP

langchain-mcp is an MCP server that connects AI clients to searchable LangChain ecosystem documentation and source code, including LangChain, LangGraph, LangSmith, and DeepAgents material. Its main tools search documentation, LangChain code, LangGraph code, and DeepAgents code, with Python or JavaScript filters for code searches.

Install it globally with npm using `npm install -g langchain-mcp`, then run `langchain-mcp login` and register `npx langchain-mcp` with your MCP client. The README also provides a manual JSON configuration for Claude Desktop and Cursor.

Yes, langchain-mcp works with Cursor.

You can search documentation, references, tutorials, and source code for the LangChain ecosystem. Separate tools target LangChain, LangGraph, and DeepAgents code, while `search_docs` covers documentation content including LangSmith material.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLangchain MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/langchain-mcp?style=directory)](https://allmcps.com/mcp/langchain-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/langchain-mcp"><img src="https://allmcps.com/api/badge/langchain-mcp?style=directory" alt="Langchain MCP on AllMCPs" /></a>