MCP Client
@ivanliu1989
关于 MCP Client
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-client-server-ivanliu1989": {
"command": "uv",
"args": [
"pip",
"install",
"-r",
"requirements.txt"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Client?
MCP Client is a Python client for interacting with MCP servers, featuring a weather tool server as an example. It uses Anthropic's Claude API for natural language queries and can connect to any compatible MCP server script.
How to use MCP Client?
Install dependencies with uv pip install -r requirements.txt or uv pip install, set up an ANTHROPIC_API_KEY in a .env file, then run uv run client.py ./server/weather.py (or python client.py ./server/weather.py) to start the interactive chat. Type queries or quit to exit.
Key features of MCP Client
- Interactive chat client for MCP servers
- Example weather server with US state alerts and forecasts
- Extensible: connect to any MCP-compatible server script
- Uses Anthropic Claude API for natural language understanding
- Supports
.envfile for API key configuration
Use cases of MCP Client
- Query weather alerts for a US state via natural language
- Get location-based weather forecasts using NWS API
- Test or interact with any custom MCP server script
- Prototype AI‑powered tools that leverage MCP infrastructure
FAQ from MCP Client
What are the runtime requirements?
Python 3.12+, mcp>=1.9.2, and a valid Anthropic API key are required. uv is recommended but optional.
How does MCP Client connect to MCP servers?
It launches the server script as a subprocess (e.g., ./server/weather.py) and communicates via the MCP protocol. The client discovers server tools and processes natural language queries through Claude.
Where is the API key stored?
In a .env file at the project root (ANTHROPIC_API_KEY=your-key). It is loaded automatically and excluded from version control via .gitignore.
Does the weather server require internet?
Yes, it needs to reach https://api.weather.gov for alerts and forecasts.
What transport does the client use?
The client connects to MCP servers over stdio (standard input/output) by running the server script locally.
其他 分类下的更多 MCP 服务器
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
评论