MCP.so
登录

MCP Client & Server Example

@xiaoye-hua

关于 MCP Client & Server Example

暂无概览

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

xiaoye-hua

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp_server_client_example": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Client & Server Example?

MCP Client & Server Example is a reference implementation of a Model Context Protocol (MCP) client and server that provides weather data using the National Weather Service API and integrates with Claude AI. It is intended for developers learning MCP or building AI-powered weather tools.

How to use MCP Client & Server Example?

Clone the repository, install uv (Python package installer), create a virtual environment, install dependencies with uv pip install -e ., copy .env.example to .env, paste your Anthropic API key, then run the server or client scripts (e.g., weather_server.py, client_example.py).

Key features of MCP Client & Server Example

  • MCP server with weather service endpoints
  • Interactive client with Claude AI integration
  • Uses the National Weather Service API
  • Python 3.12+ and uv based
  • Minimal setup with .env for API key

Use cases of MCP Client & Server Example

  • Learning how to implement an MCP client and server
  • Prototyping a weather chatbot powered by Claude AI
  • Demonstrating MCP integration with external APIs

FAQ from MCP Client & Server Example

What Python version is required?

Python 3.12 or higher is required.

What dependencies are needed?

uv (Python package installer) and an Anthropic API key stored in a .env file.

How do I install the project?

Clone the repository, run uv venv to create a virtual environment, activate it, then run uv pip install -e . to install all dependencies.

What data does the server use?

The server uses the National Weather Service API to provide weather data.

What is the project structure?

It includes weather_server.py (MCP server), client_example.py (interactive client with Claude), and weather_example.py (example using the National Weather Service).

评论

其他 分类下的更多 MCP 服务器