sample-mcp-server
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., "@sample-mcp-serveradd 5 and 3"
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.
AI MCP Tools
A lightweight local MCP server demo built in Python.
This repository contains a small set of tool definitions for mcp, showing how to expose simple operations through a local MCP server and manage the environment with uv.
What this repo contains
main.py: a minimal MCP server with five tools:add(a, b)subtract(a, b)multiply(a, b)divide(a, b)long_process(steps)
MCP.md: notes on MCP architecture and the main components of the protocol.pyproject.toml,uv.lock, and.venv/: the source configuration and environment state created throughuv.
Related MCP server: Arithmuse
Why this setup
I used uv to initialize and manage the Python environment, keep dependencies locked, and keep the repo light and reproducible. The goal is a clean, easy-to-run demo rather than a copied template.
Getting started
Create or activate the virtual environment:
uv venv .venv .\.venv\Scripts\Activate.ps1Install dependencies:
uv installRun the MCP server locally:
mcp dev main.py
Notes
The repository is designed for local development and experimentation with MCP tools.
uv.lockstores the exact dependency versions, so the environment can be reproduced..gitignoreexcludes the virtual environment and Python cache files.
Quick commands
uv init— initialize the project config withuv(already done)uv install— install packages and update the lock fileuv venv .venv— create the local virtual environmentmcp dev main.py— start the MCP tool server
This 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
- Alicense-qualityDmaintenanceA proof-of-concept MCP server that enables reading local files and performing basic arithmetic operations. It provides a simple foundation for understanding how tools are exposed to MCP clients.Last updated1,967MIT
- Flicense-quality-maintenanceA minimal Python-based MCP server that provides standard arithmetic tools including addition, subtraction, multiplication, and division. It allows language models to perform basic mathematical calculations through a standardized interface.Last updated
- Flicense-qualityDmaintenanceA sample MCP server that provides basic arithmetic tools like addition, subtraction, multiplication, and division. It serves as a demonstration for implementing the Model Context Protocol and connecting custom tools to clients like Claude Desktop.Last updated
- Alicense-qualityCmaintenanceA minimal MCP server with four tools (add, greet, text_stats, divide) demonstrating typed parameters, structured outputs, and error handling over stdio transport.Last updatedMIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
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/Swaroop1769/sample-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server