pravinrajk

MCP Demo

Community pravinrajk
Updated

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

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.

MCP Server · Populars

MCP Server · New

    livecontext-ai

    LiveContext

    The AI automation platform, self-hosted. Describe the job in chat and LiveContext builds it: readable workflows, scoped AI agents, and small apps your team uses. Chat, Workflow, Agent and App on one canvas.

    Community livecontext-ai
    timescale

    rsigma

    A complete Sigma detection engineering toolkit: parser, linter, evaluator, correlation engine, conversion framework, streaming daemon, MCP and LSP servers :crab:

    Community timescale
    Agent360dk

    Browser MCP by Agent360

    Drive your real, logged-in Chrome from any AI agent (Claude Code, Cursor, VS Code) — works where headless dies. Reads emailed login codes from your Gmail, solves CAPTCHAs, 34 tools. MIT, local-only.

    Community Agent360dk
    devlint

    GitWand

    The Git client that actually resolves conflicts — 10 deterministic patterns auto-resolve the trivial 95%, full trace on the rest. Native (Tauri 2 + Rust), free, MIT.

    Community devlint
    BETAER-08

    amdb

    Turn your codebase into AI context — entirely on your machine. Single-binary MCP server with AST parsing, call graph, and local embeddings.

    Community BETAER-08