Langchain MCP Client
This Streamlit application provides a user interface for connecting to MCP (Model Context Protocol) servers and interacting with them using different LLM providers (OpenAI, Anthropic, Google, Ollama).
What is Langchain MCP Client?
Langchain MCP Client is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this streamlit application provides a user interface for connecting to mcp (model context protocol) servers and interacting with them using different llm providers (openai, anthropic, google, ollama).
This Streamlit application provides a user interface for connecting to MCP (Model Context Protocol) servers and interacting with them using different LLM providers (OpenAI, Anthropic, Google, Ollama).
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- This Streamlit application provides a user interface for con
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx langchain-mcp-clientConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Langchain MCP Client
LangChain MCP Client is a Streamlit web application that provides a browser-based chat interface for connecting to one or more MCP servers and interacting with their tools through your choice of LLM provider. It supports OpenAI, Anthropic Claude, Google Gemini, and locally-run Ollama models, making it a flexible playground for testing MCP server capabilities. The app includes persistent SQLite-based conversation memory, multimodal file uploads (images, PDFs, text), real-time token streaming, and an individual tool-testing interface with parameter validation — all without writing any code.
Prerequisites
- Python 3.10 or later installed on your system
- uv package manager (recommended) or pip with virtualenv
- An API key for at least one LLM provider: OpenAI, Anthropic, or Google — or a running Ollama instance for local models
- One or more running MCP servers to connect to (e.g., over SSE or stdio)
- A modern web browser to access the Streamlit UI at http://localhost:8501
Clone the repository
Clone the LangChain MCP Client repository from GitHub to your local machine.
git clone https://github.com/guinacio/langchain-mcp-client.git
cd langchain-mcp-clientInstall dependencies with uv (recommended)
Use uv to create a virtual environment and install all required packages including optional extras. Alternatively, use pip with a standard venv.
# Using uv (recommended)
uv sync --all-extras --dev
# Or using pip
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtLaunch the Streamlit app
Start the application. It will open automatically in your browser at http://localhost:8501.
# With uv
uv run streamlit run app.py
# With pip/venv (venv activated)
streamlit run app.pyConfigure your LLM provider in the sidebar
In the Streamlit sidebar, select your LLM provider (OpenAI, Anthropic, Google, or Ollama) and paste in your API key. Set temperature, max tokens, and timeout to match your use case. No environment variable files are needed — keys are entered directly in the UI.
Connect to an MCP server
In the sidebar, add one or more MCP server URLs (for SSE transport, e.g., http://localhost:8000/sse). You can test connectivity using the included sample weather server.
# Run the bundled sample weather server
uv run python weather_server.py
# Then enter http://localhost:8000/sse in the appStart chatting and testing tools
Once connected, available MCP tools appear in the sidebar. You can invoke them through the chat interface using natural language, or use the individual tool-testing panel to call tools directly with custom JSON parameters and inspect raw responses.
Langchain MCP Client Examples
Client configuration
This project is a standalone Streamlit app rather than an MCP server itself. There is no JSON config block required — you run the app locally and configure providers and server connections through the UI.
# No claude_desktop_config.json entry needed.
# Run the app directly:
uv run streamlit run app.py
# Then open http://localhost:8501 in your browser.Prompts to try
Once you have connected an MCP server (e.g., the bundled weather server), try these prompts in the chat interface.
- "What is the current weather in San Francisco?"
- "List all available tools from the connected MCP server."
- "Search my conversation history for anything related to Python."
- "Upload this PDF and summarize its contents."
- "Call the get_forecast tool for New York for the next 3 days."Troubleshooting Langchain MCP Client
The app starts but no tools appear after connecting to an MCP server URL.
Ensure the MCP server is actually running and accessible at the URL you entered. For SSE transport the URL should end in /sse (e.g., http://localhost:8000/sse). Check server logs for connection errors and confirm that firewall rules allow local traffic on the server port.
API key errors or authentication failures when sending the first message.
Double-check the API key you pasted in the sidebar for the selected provider. For Anthropic, keys start with 'sk-ant-'; for OpenAI they start with 'sk-'. Ollama requires no key but needs the Ollama daemon running locally (ollama serve).
Dependency installation fails or import errors on startup.
Ensure you are using Python 3.10 or later. If using uv, run 'uv sync --all-extras --dev' again. If using pip, activate your venv first and run 'pip install -r requirements.txt'. On macOS you may need to install Xcode command-line tools if building native packages fails.
Frequently Asked Questions about Langchain MCP Client
What is Langchain MCP Client?
Langchain MCP Client is a Model Context Protocol (MCP) server that this streamlit application provides a user interface for connecting to mcp (model context protocol) servers and interacting with them using different llm providers (openai, anthropic, google, ollama). It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Langchain MCP Client?
Follow the installation instructions on the Langchain MCP Client GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Langchain MCP Client?
Langchain MCP Client works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Langchain MCP Client free to use?
Yes, Langchain MCP Client is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Langchain MCP Client Alternatives — Similar Developer Tools Servers
Looking for alternatives to Langchain MCP Client? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Langchain MCP Client in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Langchain MCP Client?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.