MCP Client & Server Example
Description
# MCP Client & Server Example ## Prerequisites - Python 3.12 or higher - uv (Python package installer and environment manager) - Environment variables set up in `.env` file (for Anthropic API key) ## Installation 1. Clone the repository 2. Install uv if you haven't already…
About
# MCP Client & Server Example ## Prerequisites - Python 3.12 or higher - uv (Python package installer and environment manager) - Environment variables set up in `.env` file (for Anthropic API key) ## Installation 1. Clone the repository 2. Install uv if you haven't already: ```bash curl -LsSf…
Details
- Author
- xiaoye-hua
- Downloads
- 282
- Categories
- Other
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Client & Server ExampleCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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).
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp client & server example": {
"mcp_server_client_example": {
"command": "uv",
"args": [
"venv"
]
}
}
}
}
McpServers
{
"mcp_server_client_example": {
"command": "uv",
"args": [
"venv"
]
}
}
MCP Client & Server Example
Prerequisites
- Python 3.12 or higher
- uv (Python package installer and environment manager)
- Environment variables set up in .env file (for Anthropic API key)
Installation
1. Clone the repository
2. Install uv if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | sh
3. Create and activate a new environment:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
4. Install dependencies using uv:
uv pip install -e .
5. Configure .env by copying
.env.example to .env and filling in your Anthropic API key:
Project Structure
- Simple client and server
- weather_server.py - MCP server implementation with weather service endpoints
- Client example and Server example
- weather_example.py - Example implementation using the National Weather Service API
- client_example.py - Interactive client with Claude AI integration
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



