
chatbot mcp
一个用于通过模型上下文协议 (MCP) 与 Claude AI 模型交互的 Python 客户端。
Repository Info
About This Server
一个用于通过模型上下文协议 (MCP) 与 Claude AI 模型交互的 Python 客户端。
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 client for interacting with Claude AI models using the Model Context Protocol (MCP).
Description
This project provides a command-line interface for connecting to MCP servers and using their tools with Claude AI models. It allows you to:
- Connect to MCP servers via Docker, Python, JavaScript, or TypeScript
- Send queries to Claude AI models
- Use tools provided by connected MCP servers
- Process responses in an interactive chat loop
Requirements
- Python 3.7+
- Anthropic API key
- MCP server(s)
Installation
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile based on.env.exampleand add your Anthropic API key:
ANTHROPIC_API_KEY=your_anthropic_api_key_here
Configuration
Configure MCP servers by setting environment variables in your .env file:
MCP_MEMORY_SERVER=docker://mcp/memory:latest
# Add more MCP servers as needed
# MCP_WEATHER_SERVER=path_to_weather_server_script
Usage
Run the client:
python mcp_client.py
Enter your questions at the prompt. Type quit or exit to end the session.
Supported MCP Server Types
- Docker images:
docker://<image[:tag]> - Python scripts:
*.py - JavaScript files:
*.js - TypeScript files:
*.ts
License
[License information]
Quick Start
Clone the repository
git clone https://github.com/rayzamgh/chatbot-mcpInstall dependencies
cd chatbot-mcp
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.