# langchain-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/baixianger/langchain-MCP  
**GitHub Stars:** 5  
**npm Downloads (last month):** 565  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/langchain-mcp

## Description
Semantic search for LangChain, LangGraph, LangSmith & DeepAgents docs and source code.

## Tools
Capabilities this server exposes over MCP:

- **search_docs** — Search documentation, references, and tutorials about LangChain, LangGraph, LangSmith, and DeepAgents.
- **search_langchain_code** — Search LangChain source code. Returns relevant code snippets.
- **search_langgraph_code** — Search LangGraph source code. Returns relevant code snippets.
- **search_deepagents_code** — Search DeepAgents source code. Returns relevant code snippets.
- **langgraph_list_threads** — List conversation threads from a local LangGraph dev server. Use this to find threads to debug. Requires a running LangGraph server (langgraph dev).
- **langgraph_get_thread** — Get detailed information about a specific thread including its current values and metadata.
- **langgraph_get_thread_state** — Get the current state/checkpoint of a thread, including state values, pending tasks, and next nodes.
- **langgraph_list_runs** — List runs (executions) for a specific thread. Use this to find specific runs to inspect.
- **langgraph_get_run** — Get detailed trace information for a specific run, including input, output, and execution details.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "langchain-mcp": {
    "command": "npx",
    "args": ["-y","langchain-mcp"]
  }
}
```

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/langchain-mcp/readme_

