Langchain MCP Client

v1.0.0Developer Toolsstable

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).

chat-applicationchatgptlangchainlocal-llm-playgroundmcp
Share:
49
Stars
0
Downloads
0
Weekly
0/5

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

Connect to multiple MCP servers through a unified Streamlit UI
Test MCP servers with different LLM providers (OpenAI, Anthropic, Google, Ollama)
guinacio

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 7, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx langchain-mcp-client

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-client
2

Install 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.txt
3

Launch 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.py
4

Configure 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.

5

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 app
6

Start 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.

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.

Quick Config Preview

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

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides