Skip to main content
Glama
anjalbhattarai79

FastMCP Demo Server

🚀 FastMCP Demo

This is a small demo project showing how to use FastMCP to create a minimal MCP server.

What it offers 🛠️

  • A minimal FastMCP server named "My MCP Server".

  • One exposed tool: greet(name: str) -> str which returns a greeting string.

  • Example client showing a remote demo server URL: https://demo-server.fastmcp.app/mcp 📡

How to run locally 🔁

  1. Ensure Python is installed.

  2. Install dependencies: pip install fastmcp

  3. Start the server locally: python my_server.py

Usage examples 🔧

  • Local server (default): curl -X POST http://localhost:8000/greet -H "Content-Type: application/json" -d '{"name":"Anjal"}'

    • Example response: Hello From Fast MCP, Mr.Anjal!

  • Remote demo server: You can use the provided demo server if you don't want to run it locally: curl -X POST https://demo-server.fastmcp.app/mcp/greet -H "Content-Type: application/json" -d '{"name":"Anjal"}'

    • Example response: Hello From Fast MCP, Mr.Anjal!

Client example 🧭

Notes ⚠️

  • This repo is a demonstration only. Update and expand tools as needed for real applications.

  • Adjust transport or port in my_server.py if required.

Related MCP Connectors

Related MCP Servers

  • -
    license
    C
    quality
    Not graded
    maintenance
    A simple boilerplate MCP server that provides a basic greeting tool for demonstration purposes. Serves as a starting template for developers to quickly create and deploy custom MCP servers.
    1
    4 npm
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A demonstration MCP server that runs over HTTP with streamable transport, providing a simple greeting tool for testing MCP client-server communication. Built with FastMCP framework for educational purposes in learning MCP server development.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A minimal demonstration MCP server that provides basic mathematical addition and greeting functionality, serving as a template for building and deploying FastMCP servers.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A simple example MCP server built with FastMCP and Python that provides a greeting tool, designed as a quickstart template for Smithery deployment.
    -