AT

akshay-techwize/mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

0 stars 0 forks Качество 52 Тренд 8

remote mcp server

Обзор

A simple MCP server built with FastMCP that exposes an addition tool and a server info resource. Clone the repo and install dependencies: Starts the server on http://0.0.0.0:8000: Launches the server with the interactive MCP Inspector UI for testing tools and resources: Then open the Inspector UI in your browser: Returns a description of this MCP server, its tools, and resources. To connect a client (e.g. Claude Desktop, Cursor) to the running HTTP server, use: - Streamable HTTP - http://localhost:8000/mcp

README

Calculator MCP Server

A simple MCP server built with FastMCP that exposes an addition tool and a server info resource.

Prerequisites

  • Python 3.10+
  • uv package manager

Setup

Clone the repo and install dependencies:

uv sync

Running the Server

Option 1 — HTTP Server (production / remote)

Starts the server on http://0.0.0.0:8000:

uv run python main.py

The MCP endpoint will be available at:

http://localhost:8000/mcp

Launches the server with the interactive MCP Inspector UI for testing tools and resources:

uv run fastmcp dev inspector main.py:mcp

Then open the Inspector UI in your browser:

http://localhost:6274

Tools

add

Adds two numbers and returns their sum.

Parameter Type Description
a float First number
b float Second number

Example: add(3, 7) → 10.0

Resources

info://server

Returns a description of this MCP server, its tools, and resources.

Connecting to a Client

To connect a client (e.g. Claude Desktop, Cursor) to the running HTTP server, use:

  • Transport: Streamable HTTP
  • URL: http://localhost:8000/mcp

For Claude Desktop, add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "calculator": {
      "command": "uv",
      "args": ["run", "python", "/absolute/path/to/main.py"]
    }
  }
}
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "calculator": { "command": "uv", "args": ["run", "python", "/absolute/path/to/main.py"] } } }