AdYour product here, seen by people installing AI tools every day Sponsor slots open: 12 of 12, from $249 a month

How to install langchain in Claude Desktop

To install langchain in Claude Desktop, open Settings, Developer, Edit Config, paste the "langchain" block into mcpServers in claude_desktop_config.json, and restart the app.

Built from the published package · server updated 2 months ago

  1. 1

    Open the config file

    In Claude Desktop, go to Settings, then Developer, then Edit Config.

  2. 2

    Add the server

    Paste this into the file. If you already have servers, add the "langchain" entry inside your existing mcpServers block.

    {
      "mcpServers": {
        "langchain": {
          "url": "https://doc2mcp.site/api/mcp/0cd2635e-0cd5-4712-b33c-13b10c547e42/mcp",
          "headers": {
            "Authorization": "Bearer YOUR_API_KEY"
          }
        }
      }
    }
  3. 3

    Restart Claude Desktop

    Quit the app fully and open it again. The server appears under the tools icon in a new chat.

Config file: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json

MCP servers run with your permissions. If langchain needs an API key, add it under env in the config. Check its README.

Install langchain in another app

Similar servers

Questions

Does langchain work in Claude Desktop?

Yes. Claude Desktop supports local mcp servers through a config file, remote servers as connectors, and langchain installs with the steps above.

langchain does not show up in Claude Desktop. What now?

Restart Claude Desktop fully, check the JSON is valid, and make sure Node.js (for npx) is installed. See common MCP errors and fixes.

Is langchain safe?

It scores 50 of 100. Review the code before you install it, and only give it the access it needs. Grades and details.