AT

akshay-techwize/mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

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"]
    }
  }
}
GitHub で README 全文を見る

インストール

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"] } } }