Skip to main content
Glama

Fast MCP Local

by karthik78180

Fast MCP Local

A minimal FastMCP server implementation with basic tools.

Requirements

  • Python 3.10 or higher (required by FastMCP)

Setup

Quick Setup (Automated)

If you have Python 3.10+ already installed:

./setup.sh

Manual Setup

  1. Install Python 3.13 (if not already installed):

brew install python@3.13
  1. Create a virtual environment:

python3.13 -m venv .venv source .venv/bin/activate
  1. Install dependencies:

pip3 install -e ".[dev]"

Running the Server

source .venv/bin/activate python3 -m fast_mcp_local.server

Running Tests

source .venv/bin/activate pytest # Run all tests pytest -v # Verbose output

Tools

The server provides two basic tools:

  • greet(name: str): Greets a person by name

  • add(a: int, b: int): Adds two numbers together

Development

To add new tools:

  1. Define a function in src/fast_mcp_local/server.py with type hints and docstring

  2. Register it with mcp.tool()(your_function)

  3. Write tests in tests/test_server.py

  4. Run tests: pytest

Example:

def multiply(a: int, b: int) -> int: """Multiply two numbers.""" return a * b mcp.tool()(multiply)
-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

A minimal FastMCP server implementation that provides basic mathematical and greeting tools. Enables users to perform simple operations like adding numbers and greeting people by name through a lightweight MCP interface.

  1. Requirements
    1. Setup
      1. Quick Setup (Automated)
      2. Manual Setup
    2. Running the Server
      1. Running Tests
        1. Tools
          1. Development

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/karthik78180/fast-mcp-local'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server