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...).
- Connect to MCP servers via SSE (Server-Sent Events)
- Support for both single server and multiple server configurations
- Select between different LLM providers (OpenAI/Claude)
- View, test, and use available MCP tools directly from the UI
- Chat interface for interacting with the LLM agent
- Tool execution results display
- Clone this repository:
git clone https://github.com/guinacio/langchain-mcp-client.git
cd langchain-mcp-client- Create a virtual environment and install dependencies:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtRun the Streamlit app with:
streamlit run app.pyThe application will be available at http://localhost:8501
To use this application, you'll need an MCP server running or a valid URL to an MCP server. Use the simple MCP server available on weather_server.py for a quick test:
- Install the MCP library:
pip install mcp- Run the server:
python weather_server.pyThe server will start on port 8000 by default. In the Streamlit app, you can connect to it using the URL http://localhost:8000/sse.