Skip to main content
Glama
pravinrajk

mcp_demo

by pravinrajk

MCP Demo

A simple demo MCP server using mcp[cli].

This project exposes a small MCP app with one tool and one resource:

  • add(a: int, b: int) -> int: returns the sum of two integers in a string response.

  • get_greeting(name: str) -> str: returns a greeting for the provided name.

Requirements

  • Python 3.14+

  • mcp[cli]>=1.28.1

Related MCP server: Demo Server

Install

Create and activate a virtual environment, then install dependencies:

python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install .

Run

Start the MCP server from the project root:

python main.py

Project structure

  • main.py – MCP app definition and endpoint implementations.

  • pyproject.toml – package metadata and dependencies.

  • README.md – project documentation.

  • image/icon/user.png – icon asset used by the MCP app.

Notes

  • The server is configured with FastMCP and a demo icon.

  • The MCP app name is mcp_demo.

  • Update website_url in main.py if you want a real website link.

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    A simple local MCP server that provides greeting and integer addition tools.
    2
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A simple MCP server that exposes a calculator tool (addition) and a dynamic greeting resource.
    16
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Basic MCP server demonstrating tools for arithmetic operations (add, subtract) and a personalized greeting resource.
    1
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A basic MCP server that provides arithmetic tools (add, subtract) and a greeting resource, demonstrating core MCP concepts.
    GPL 3.0