About Smithery Fastmcp Example
Smithery Fastmcp Example is an MCP server published by SmartManoj in the Search category.
The repository has 2 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/SmartManoj/smithery-fastmcp-exampleThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Smithery Fastmcp Example
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
FastMCP Demo 🚀
A simple demonstration of FastMCP, the fast, Pythonic way to build MCP servers and clients.
What is this?
This project demonstrates how to create a basic MCP server using FastMCP. The server provides a simple tool that adds two numbers together.
Features
- Simple MCP Server: Built with FastMCP framework
- Basic Tool:
addfunction that adds two integers - Docker Support: Containerized for easy deployment
- Smithery Integration: Configured for Smithery.ai deployment
Quick Start
Prerequisites
- Python 3.11+
- pip
Local Development
-
Install dependencies:
pip install -r requirements.txt -
Run the server:
python server.py
Using Docker
-
Build the image:
docker build -t fastmcp-demo . -
Run the container:
docker run fastmcp-demo
Project Structure
smithery-fastmcp-example/
├── server.py # Main MCP server implementation
├── requirements.txt # Python dependencies
├── smithery.yaml # Smithery.ai configuration
├── Dockerfile # Docker container definition
└── README.md # This file
Available Tools
add(a: int, b: int) -> int
Adds two integers together.
Parameters:
a: First integerb: Second integer
Returns:
- Sum of the two integers
Example:
result = add(5, 3) # Returns 8
Configuration
The project is configured for Smithery.ai deployment with the following settings:
- Start Command:
python server.py - Runtime: Python 3.11
- Protocol: stdio
Development
To extend this demo:
- Add new tools using the
@mcp.tooldecorator - Define your function with proper type hints
- Add a docstring for the tool description
Example:
@mcp.tool
def multiply(a: int, b: int) -> int:
"""Multiply two numbers"""
return a * b
Learn More
- FastMCP GitHub Repository - The official FastMCP project
- Model Context Protocol - MCP specification and documentation
- Smithery.ai - MCP deployment platform
License
This project is open source and available under the MIT License.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.