Feedback

Simple CLI MCP Client Using LangChain / Python

@hideya Claim

Basic information

Runtime
python
Category
License
MIT license
Author
hideya
Submitted by
Community
Quality
35
Stars
9

About Simple CLI MCP Client Using LangChain / Python

Simple CLI MCP Client Implementation Using LangChain ReAct Agent / Python

Simple CLI MCP Client Using LangChain / Python is a MCP client in the Agent Framework category listed in the AddMCP.net directory, published by hideya. Runtime: python. License: MIT license. The repository has 9 GitHub stars. Source code is hosted on github.com. Related topics: langchain, langchain-python, mcp, mcp-client, modelcontextprotocol.

Simple CLI MCP Client Using LangChain / Python config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Simple CLI MCP Client Using LangChain / Python tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Simple CLI MCP Client Using LangChain / Python?

A command‑line application that demonstrates how to use Model Context Protocol (MCP) server tools via the LangChain ReAct Agent. It runs on Python 3.11+ and is aimed at developers integrating MCP with LangChain.

How to use Simple CLI MCP Client Using LangChain / Python?

Install dependencies with make install, copy .env.template to .env and populate API keys for Anthropic, OpenAI, and/or Groq. Configure LLM and MCP servers in llm_mcp_config.json5 (JSON5 format with environment variable substitution). Run with make start; press Enter at the prompt to use built‑in example queries that invoke MCP tools.

Key features of Simple CLI MCP Client Using LangChain / Python

  • Converts MCP tools into LangChain‑compatible BaseTool objects via convert_mcp_to_langchain_tools()
  • Supports parallel initialization of multiple MCP servers
  • Works with LLMs from Anthropic, OpenAI, and Groq
  • Config file uses JSON5 (comments, trailing commas) and ${...} env variable substitution
  • Includes configurable example queries for quick testing

Use cases of Simple CLI MCP Client Using LangChain / Python

  • Prototype a LangChain ReAct agent that calls MCP‑exposed tools
  • Test MCP server integration without a full IDE or desktop app
  • Compare tool‑calling behavior across different LLM providers
  • Automate CLI workflows that chain multiple MCP tool invocations

Frequently asked questions

1 What is the Model Context Protocol (MCP)?

MCP is an open protocol that standardises how applications provide context and tools to LLMs. This client connects to MCP servers and exposes their tools to a LangChain agent.

2 Which LLM providers are supported?

Anthropic, OpenAI, and Groq are currently supported. You must provide the corresponding API keys in .env.

3 How does the config file differ from Claude for Desktop’s?

The configuration follows the same structure as Claude for Desktop’s mcpServers, but the key name is changed to mcp_servers (snake_case) to match JSON conventions.

4 How do I set up API keys?

Copy .env.template to .env, then fill in the keys. The .gitignore already excludes .env to prevent accidental commits. Use ${KEY_NAME} in the JSON5 config to reference environment variables.

5 Is there a TypeScript version?

Yes, a TypeScript version of this MCP client is available here.

6 What is the license?

The project is released under the MIT License.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬