
mcp client python
Python implementation of the Model Context Protocol (MCP) client
Repository Info
About This Server
Python implementation of the Model Context Protocol (MCP) client
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Client Python
Python implementation of the Model Context Protocol (MCP) client.
Features
- Support for multiple LLM providers (Anthropic, DeepSeek)
- Dynamic tool loading from MCP servers
- Configurable server connections
- Chat interface with tool execution capabilities
Installation
pip install -r requirements.txt
Usage
from mcp_client import MCPClient
# Initialize client with desired LLM provider
client = MCPClient(llm_provider="anthropic")
# Load MCP servers from config
await client.load_mcp_servers("config/servers.json")
# Start chat loop
await client.chat_loop()
Configuration
Create a .env file with your API keys:
ANTHROPIC_API_KEY=your_anthropic_key
DEEPSEEK_API_KEY=your_deepseek_key
License
MIT
Quick Start
Clone the repository
git clone https://github.com/fist-maestro/mcp-client-pythonInstall dependencies
cd mcp-client-python
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.