MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install -r requirements.txt
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add mcp-server -- node "<FULL_PATH_TO_MCP_SERVER>/dist/index.js"

Replace <FULL_PATH_TO_MCP_SERVER>/dist/index.js with the actual folder you prepared in step 1.

README.md

A minimal Model Context Protocol server using FastMCP

MCP Server (FastMCP)

A minimal Model Context Protocol server using FastMCP, with one tool, one prompt, and one resource.

Type Name Description
Tool calculate Safe math expression evaluation (sqrt, sin, pi, etc.)
Prompt explain Ask the model to explain a topic in simple terms
Resource app://info Server name and capabilities (read-only)

Requirements

  • Python 3.10+
  • pip

Setup

1. Create and activate a virtual environment

python3 -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate

2. Install dependencies

pip install -r requirements.txt

3. Run the server

MCP servers use stdio by default. Your MCP client launches the process. To verify it starts:

python server.py
# Blocks waiting for MCP messages. Press Ctrl+C to quit.

Connecting to Claude Desktop

Add to your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "example-server": {
      "command": "/absolute/path/to/MCP-Server/.venv/bin/python",
      "args": ["/absolute/path/to/MCP-Server/server.py"]
    }
  }
}

Use your actual paths and restart Claude Desktop.


Using with MCP Dashboard

The MCP Dashboard launches this server as a subprocess and talks to it over stdio, so tools, resources, and prompts all appear in the UI.

From the MCP-Dashboard directory (with Flask installed), run:

# Unbuffered (-u) so the dashboard receives list responses immediately
python app.py -- python -u path/to/MCP-Server/server.py

Windows:

python app.py -- python -u path\to\MCP-Server\server.py

Use a Python that has both flask and fastmcp installed (or use the full path to this repo's venv Python if you use one).

The dashboard will open at http://localhost:8080 and show the calculate tool, app://info resource, and explain prompt. You can try the tool, read the resource, and get the prompt from the browser.


Reference

Tool: `calculate`

  • Input: { "expression": "sqrt(2) * pi" }
  • Output: "4.442882938158366"
  • Supports: +, -, *, /, **, %, //, and functions like abs, round, sqrt, ceil, floor, log, log10, sin, cos, tan; constants pi, e.

Prompt: `explain`

  • Input: { "topic": "recursion" }
  • Returns a user message asking the model to explain the topic in simple terms.

Resource: `app://info`

  • Read-only. Returns JSON: {"name": "mcp-server", "capabilities": ["calculate", "prompts", "resources"]}.

Project structure

MCP-Server/
├── server.py
├── requirements.txt
└── README.md

To add more tools, prompts, or resources, use the @mcp.tool, @mcp.prompt, and @mcp.resource(...) decorators in server.py.

Tools (1)

calculateSafe math expression evaluation including functions like sqrt, sin, and pi.

Configuration

claude_desktop_config.json
{"mcpServers": {"example-server": {"command": "/absolute/path/to/MCP-Server/.venv/bin/python", "args": ["/absolute/path/to/MCP-Server/server.py"]}}}

Try it

Calculate the square root of 2 multiplied by pi.
Use the calculate tool to solve 15 * 3 + 10.
Explain the concept of recursion in simple terms.
What are the capabilities of this MCP server?

Frequently Asked Questions

What are the key features of MCP Server?

Safe mathematical expression evaluation. Custom prompt for simple topic explanations. Read-only resource for server capabilities. Built with FastMCP for minimal overhead.

What can I use MCP Server for?

Performing complex mathematical calculations directly within Claude. Getting simplified explanations for technical topics. Testing and verifying MCP server connectivity and capabilities.

How do I install MCP Server?

Install MCP Server by running: pip install -r requirements.txt

What MCP clients work with MCP Server?

MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare