
mcp client
一个用Python编写的FastAPI服务器,连接多个MCP服务器并提供统一的AI工具接口。
Repository Info
About This Server
一个用Python编写的FastAPI服务器,连接多个MCP服务器并提供统一的AI工具接口。
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
A Python FastAPI server that connects to various Model Context Protocol (MCP) servers and provides a unified interface for AI-powered tools.
Installation
Requirements
- Python 3.11 or higher
- Node.js and npm (for MCP servers)
Setup
-
Clone the repository
-
Create and activate a virtual environment:
cd mcp-client
python -m venv .venv
# On Windows
.venv\Scripts\activate
# On macOS/Linux
source .venv/bin/activate
- Install dependencies:
pip install -e .
- Create a
.envfile in the root directory with your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_here
Running the Application
- Start the FastAPI server:
python main.py
The server will run on http://localhost:8000
- Connect a frontend client to the API endpoint:
- POST to
/chatwith a JSON body:{"query": "your question here"}
- POST to
Configuration
Server configurations are defined in server_configs.json. The client will automatically connect to all configured MCP servers on startup.
API Endpoints
POST /chat: Send a query to process through the connected MCP servers- Request body:
{"query": "string"} - Response:
{"response": "string"}
- Request body:
Quick Start
Clone the repository
git clone https://github.com/adityakotha03/mcp-clientInstall dependencies
cd mcp-client
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.