# Does LangChain have an MCP server?

**Yes — Official.** LangChain maintains an official MCP server.

> Two official pieces: langchain-ai/mcpdoc serves LangChain docs over MCP, and langchain-mcp-adapters (~3.6k stars) lets LangChain agents consume any MCP server.

## Facts

- Verdict: Official (Yes)
- Access: Local server — Runs on your machine over stdio, launched by your MCP client.
- Repository: [langchain-ai/mcpdoc](https://github.com/langchain-ai/mcpdoc) — ★ 1.0k, last push 2026-07-17, MIT
- Maintainer: LangChain
- Language: Python
- Category: [Developer Tools](https://mcpyet.com/category/developer-tools/)
- Verified against vendor docs: 2026-08-10
- GitHub data refreshed: 2026-08-11 (re-checked every 6 hours)

## What it does

> Expose llms-txt to IDEs for development
> — how [langchain-ai/mcpdoc](https://github.com/langchain-ai/mcpdoc) describes itself

## The receipts

- **Official repository:** [langchain-ai/mcpdoc](https://github.com/langchain-ai/mcpdoc) — ★ 1.0k, pushed 2026-07-17, MIT (active)

## How to connect it

Runs on your machine over stdio, launched by your MCP client.

### Claude Code

```sh
claude mcp add langchain -- npx -y <package-from-readme>
```

Swap in the exact package and flags from the repo README — most servers need an API key passed as an environment variable. Add `--scope user` to make it available in every project.

### Claude Desktop

Open **Settings → Developer → Edit Config** and add the server to `claude_desktop_config.json`, then restart Claude Desktop:

```json
{
  "mcpServers": {
    "langchain": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:

```json
{
  "mcpServers": {
    "langchain": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### VS Code

Add to `.vscode/mcp.json`, then pick the server from Copilot's agent-mode tools menu:

```json
{
  "servers": {
    "langchain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ]
    }
  }
}
```

### ChatGPT

ChatGPT connects to **remote servers only**, and this one runs on your machine. Either expose it through an MCP gateway that gives it a public URL, or use a client with native local support (Claude or Cursor).

## How we know

langchain-ai org maintains both an official docs MCP server (mcpdoc) and first-class MCP client adapters. Seed said COMMUNITY-ONLY with an unrelated repo.

- GitHub data refreshed 2026-08-11, then every 6 hours.
- Vendor docs verified on 2026-08-10.
- Corrections: hello@mcpyet.com.

## Also in Developer Tools

- [Chrome DevTools](https://mcpyet.com/mcp/chrome-devtools.md) — Official (Yes)
- [Google AI Studio](https://mcpyet.com/mcp/google-ai-studio.md) — Community only (Sort of)
- [Serena](https://mcpyet.com/mcp/serena.md) — Official (Yes)
- [GitLab](https://mcpyet.com/mcp/gitlab.md) — Official (Yes)
- [n8n](https://mcpyet.com/mcp/n8n.md) — Official (Yes)
- [shadcn/ui](https://mcpyet.com/mcp/shadcn.md) — Official (Yes)

---

Source: https://mcpyet.com/mcp/langchain/ — data refreshed 2026-08-11
