Feedback

MCP Server Python — by jongkwang

@jongkwang Claim

Basic information

Runtime
python
Category
License
MIT license
Transports
stdio
Author
jongkwang
Submitted by
Community
Quality
10

About MCP Server Python

# MCP Server Python

MCP Server Python is a MCP server in the Other category listed in the AddMCP.net directory, published by jongkwang. Supported transport: stdio. Runtime: python. License: MIT license. Source code is hosted on github.com. Related topics: mcp, model-context-protocol, python, server.

Setup

{
    "mcpServers": {
        "hello-mcp-server-python": {
            "command": "python",
            "args": [
                "server.py"
            ]
        }
    }
}

MCP Server Python — by jongkwang config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "hello-mcp-server-python": {
            "command": "python",
            "args": [
                "server.py"
            ]
        }
    }
}

MCP Server Python — by jongkwang tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP Server Python?

MCP Server Python is a Python server example that provides tools to LLMs such as Claude AI using the Model Context Protocol (MCP). It offers BMI calculation and weather information lookup functions.

How to use MCP Server Python?

Install dependencies with pip install mcp httpx, then run the server using python server.py or mcp run server.py. Connect to Cursor by placing an mcp.json file in the project root, or to Claude for Desktop by running the server and adding it in the MCP settings.

Key features of MCP Server Python

  • Provides calculate_bmi tool for BMI calculation
  • Provides fetch_weather tool for city weather lookup
  • Connects to Cursor and Claude for Desktop
  • Built with MCP Python SDK and httpx
  • Requires Python 3.9 or higher

Use cases of MCP Server Python

  • Calculate BMI for health and fitness applications
  • Fetch current weather for travel or planning
  • Demonstrate how to build an MCP server in Python
  • Integrate LLM chatbots with external data via function calling

Frequently asked questions

1 What tools does MCP Server Python provide?

It provides two tools: calculate_bmi (calculates BMI from height and weight) and fetch_weather (retrieves weather for a given city, requiring an API key).

2 What are the prerequisites to run MCP Server Python?

You need Python 3.9 or higher, pip, httpx, and the MCP Python SDK (installed via pip install mcp httpx).

3 How do I connect MCP Server Python to Cursor?

Create an mcp.json file in the project root with the command mcp run /path/to/server.py. Claude in Cursor will automatically recognize the tools.

4 How do I connect MCP Server Python to Claude for Desktop?

Run the server with python server.py, then in Claude for Desktop settings go to the MCP server section and add the local server (configure URL/port as needed).

5 Does MCP Server Python require an API key for weather?

Yes. You must modify server.py to set your API key in the fetch_weather function before the weather tool works.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬