Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Langchain MCP client

MCP server by datalayer Verified · gh:datalayer

LangChain MCP Client is a Python client that lets LangChain ReAct agents use tools from Model Context Protocol servers. It is aimed at developers who want to pair any LangChain-compatible LLM with MCP servers through a CLI.

  • Score 53
  • 10 stars
  • NOASSERTION
  • Updated

Install Langchain MCP client

Built from the published package, never by AI.

claude mcp add langchain-mcp-client -- uvx langchain_mcp_client

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Langchain MCP client in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the langchain-mcp-client block.

About

LangChain MCP Client is a simple Model Context Protocol client written in Python. It demonstrates how a LangChain ReAct agent can use the tools exposed by MCP servers. Its utility function convert_mcp_to_langchain_tools() initializes several specified MCP servers in parallel and converts their tools into LangChain-compatible tools.

Users configure the LLM, the MCP servers and example queries in an llm_mcp_config.json5 file, and store API keys in a .env file. They then interact with the agent through a command line interface. The source gives a Jupyter MCP Server example, where the agent creates matplotlib examples in JupyterLab. The project is intended for developers and users who want to connect MCP servers to LangChain agents and choose their own LLM.

Written from the project's README and checked against it.

Tools it gives your assistant

  • convert_mcp_to_langchain_tools()Initializes multiple MCP servers in parallel and converts their tools into LangChain tools.
  • Any MCP serverConnects to MCP servers specified in the llm_mcp_config.json5 file.
  • Any LangChain LLMWorks with any LangChain-compatible LLM chosen in the configuration.
  • CLILets the user hold dynamic conversations with the agent from the command line.
  • Example queriesDefines example queries in the config that users can run by pressing Enter.

What you need

  • Python 3.11 or higher
  • API keys for your LLM, stored in a .env file
  • A running MCP server, such as the Jupyter MCP Server for the usage example

Try asking

  • Create matplotlib examples with many variants in Jupyter
  • Use my configured MCP server tools to answer a question
  • Run one of the example queries from my llm_mcp_config.json5 file

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Langchain MCP client

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.

AAA Remote 24k
Sim simstudioai
100

Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.

AAA Remote 30k
Omnara omnara-ai
98

Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.

AAA Remote 3.5k
strata Klavis-AI
95

Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.

AAA Remote 5.8k
voicemode mbailey
95

VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

Langchain MCP client: common questions

What is the LangChain MCP client used for?

The source describes it as a simple Model Context Protocol client that demonstrates how MCP server tools can be used by a LangChain ReAct agent.

Which LLMs does it support?

The source says it can use any LangChain-compatible LLM, and that the LLM is set up in the llm_mcp_config.json5 file.

Where does this code come from?

The source says the initial code is taken from hideya/mcp-client-langchain-py and langchain_mcp_tools, both under the MIT License.

How do I install Langchain MCP client?

In Claude Code run claude mcp add langchain-mcp-client -- uvx langchain_mcp_client. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Langchain MCP client the official server?

Langchain MCP client is published by gh:datalayer from its verified domain in the official MCP Registry.

Is Langchain MCP client free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is Langchain MCP client safe to use?

It scores 53 of 100. Grades: maintenance A, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Langchain MCP client?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does Langchain MCP client work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Langchain MCP client Install

Add to stack

Loading.