# langchain-mcp

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5 repo stars
- Author: baixianger
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/baixianger/langchain-MCP/tree/HEAD/packages/mcp-server
- Updated: 2026-07-19
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/langchain-mcp

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add langchain-mcp -- npx -y langchain-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp-server -- npx -y langchain-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "langchain-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "langchain-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp-server npx -y langchain-mcp
```

## When to use it
- 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
- 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.

## Similar
- [langchain-fundamentals](https://affpapa.org/en/nevibecode/skills/langchain-fundamentals.md) — skill · 18500 installs
- [langchain-dependencies](https://affpapa.org/en/nevibecode/skills/langchain-dependencies.md) — skill · 17000 installs
- [langchain-dev-guide](https://affpapa.org/en/nevibecode/skills/langchain-dev-guide.md) — skill · 895 installs
- [langchain-development](https://affpapa.org/en/nevibecode/skills/langchain-development.md) — skill · 726 installs
- [migrating-langchain-to-pydantic-ai](https://affpapa.org/en/nevibecode/skills/migrating-langchain-to-pydantic-ai.md) — skill · 476 installs
- [langchain-webhooks-events](https://affpapa.org/en/nevibecode/skills/langchain-webhooks-events.md) — skill · 4 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
