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.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/pravinrajk/MCP_Server'

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