Skip to main content
MCP server CX Codex

langchain-mcp — Claude Code MCP server: features and setup

langchain-mcp is an MCP server for Claude Code that searches LangChain resources and inspects LangGraph agent runs. Search requires login; debugging connects to a local server.

no license ★ 5 updated 2026-07-19

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add langchain-mcp -- npx -y langchain-mcp
Open on GitHub

What langchain-mcp does

langchain-mcp searches documentation and source code for LangChain, LangGraph, and DeepAgents. Search tools also cover LangSmith and require login. Search comes with $5 in free credits, roughly 2000 searches.

For debugging, the server can show threads, runs, traces, agent state, and checkpoints. Start a LangGraph server with langgraph dev; the MCP server connects to localhost:2024 by default. Debugging is free and does not require login.

What it helps with

  • find LangChain documentation and tutorials
  • search LangGraph source code for relevant implementation details
  • inspect an agent run and its trace
  • investigate a LangGraph agent failure

Example prompts for the agent

  • Find documentation for the LangChain feature I’m using.
  • List the LangGraph threads and investigate why the latest run failed.
  • Inspect the agent state and suggest a prompt improvement.

How to install langchain-mcp

Platform CLI

claude mcp add langchain-mcp -- npx -y langchain-mcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about langchain-mcp

How do I install langchain-mcp in Claude Code?

Run claude mcp add langchain-mcp -- npx -y langchain-mcp. Sign in afterward to use documentation and code search.

What does langchain-mcp do?

It searches LangChain, LangGraph, and DeepAgents documentation and source code. It can also inspect runs and state from a local LangGraph server.

What does langchain-mcp need for agent debugging?

Start a LangGraph server with langgraph dev. Debugging connects to localhost:2024 and works without login.

Similar MCP servers

All MCP servers for AI and ML →

Project sponsors

Companies that keep this analytics open