MCP ExplorerExplorer

Mcp Anthropic

@yogendrahexoon a year ago
2 MIT
FreeCommunity
AI Systems
MCP Anthropic integrates weather services with Anthropic's Claude Desktop app.

Overview

What is Mcp Anthropic

mcp-anthropic is an integration for Anthropic’s Claude Desktop application that utilizes the Model Context Protocol (MCP) to provide functionalities such as a weather service example.

Use cases

Use cases include developing applications that provide real-time weather updates, integrating weather data into chatbots, and enhancing user interactions in Claude Desktop with weather-related functionalities.

How to use

To use mcp-anthropic, set up the client by creating a virtual environment and installing the necessary packages. Configure the Claude Desktop application by editing the configuration file to include the MCP server settings, and then you can interact with the weather tools directly through the Claude interface.

Key features

Key features include support for both the standard Anthropic API and AWS Bedrock integration, customizable tools, and a straightforward setup process.

Where to use

mcp-anthropic can be used in various fields that require weather data integration, such as meteorology, environmental monitoring, and application development that leverages weather information.

Content

MCP Anthropic Integration

This repository contains a Model Context Protocol (MCP) for Anthropic’s Claude Desktop application, featuring a weather service example.

Requirements

  • UV (Python package manager)
  • Claude Desktop (if want to use the tools in with anthropic chat UI)
  • Python >= 3.10
  • Anthropic API key (for client.py)
  • AWS credentials (for bedrockClient.py)

Setup Instructions

1. Client Setup

The project includes two client implementations:

  1. Anthropic API Client (client.py): Uses the standard Anthropic API
  2. AWS Bedrock Client (bedrockClient.py): Uses AWS Bedrock for Claude integration

To run either client:

cd mcp-client
uv venv   # Create virtual environment using uv
uv pip install -e .   # Install the client package

# For Anthropic API client
uv run client.py path/to/server/weather/server.py

# For AWS Bedrock client
uv run bedrockClient.py path/to/server/weather/server.py

2. Server Setup

cd weather-server-python
uv venv   # Create virtual environment

3. Claude Desktop Configuration

  1. Install Claude Desktop from Anthropic
  2. Open the configuration file:
code %AppData%\Claude\claude_desktop_config.json
  1. Add the following configuration (adjust the path according to your setup):
{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather",
        "run",
        "weather"
      ]
    }
  }
}

Usage

Once configured, the weather tools will be available in Claude Desktop. You can interact with them directly through the Claude interface.

Custom Tools

You can extend the functionality by adding more tools to your custom server. Update the claude_desktop_config.json accordingly to make new tools available in Claude Desktop.

⚠️ Important: When naming your tools, only use letters, numbers, and underscores (_). Special characters and spaces are not supported in tool names.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers