small-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@small-mcpCount words in 'Hello world'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
small-mcp
A minimal FastMCP server in Python that demonstrates all four MCP primitives: tools, resources, resource templates, and prompts — including how to use the context object for logging and progress reporting.
Requirements
uv (package manager)
Python 3.14+
Related MCP server: MCPServer (FastMCP)
Setup
uv syncRun
uv run python main.pyThe server starts in stdio mode, ready to be connected to any MCP client.
Primitives
Tools
Functions the LLM can call to perform actions.
Tool | Description |
| Add two numbers |
| Count words, characters, and lines |
| Return the current UTC time |
| Log a message via MCP context (demonstrates progress + logging) |
Resources
Static data the LLM can read.
URI | Description |
| Basic info about this server |
| A Python Hello World snippet |
Resource Templates
Dynamic resources resolved from a URI pattern.
Template | Description |
| Hello World snippet for |
Prompts
Reusable prompt templates the LLM can request by name.
Prompt | Args | Description |
|
| Ask for a summary in a given style |
|
| Request a code review |
|
| Explain a concept to a target audience |
Context
The log_message tool shows how to inject ctx: Context into a tool to:
Send log messages back to the client via
ctx.info()Report progress via
ctx.report_progress(progress, total)
Inspect with MCP Inspector
uv run fastmcp dev inspector main.pyThen open the URL printed in the terminal to browse and call tools, read resources, and render prompts interactively.
Connect to Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"small-mcp": {
"command": "uv",
"args": ["run", "--directory", "/Users/nishantbhagat/Study/Projects/small mcp", "python", "main.py"]
}
}
}Project Structure
small mcp/
├── main.py # MCP server (all primitives in one file)
├── pyproject.toml # uv project config
└── uv.lockThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn educational MCP server example built with FastMCP that demonstrates how to expose tools, resources, and prompts to AI clients. Provides a learning foundation for building MCP servers with Python and integrating them with AI applications like IDEs and chatbots.Last updated
- Flicense-qualityDmaintenanceA minimal Model Context Protocol server built with FastMCP that provides basic utility tools including user greetings, number addition, and file listing operations. Includes examples of exposing tools, resources, and prompts for MCP-aware clients.Last updated
- Flicense-qualityCmaintenanceA basic MCP server implementation using the FastMCP framework that provides utility tools for greetings and mathematical calculations. It is designed to demonstrate tool integration for AI-assisted development workflows like Cline.Last updated
- Flicense-qualityDmaintenanceEducational example of an MCP server built with FastMCP, demonstrating how to expose tools, resources, and prompts for AI clients.Last updated
Related MCP Connectors
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, P…
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Nishant-IIT/smallmp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server