simple
Simple MCP Server — Educational Example This repository contains a minimal MCP (Model Context Protocol) server built for educational purposes. Its goal is to help developers understand how the MCP protocol works and how to manage decision-making processes based on model–client communication.
claude mcp add --transport stdio dataworkshop-simple-mcp-server python server.py
How to use
This MCP server exposes three utility tools over a streamable HTTP (MCP) transport. The server is authored in Python and is started with a Python invocation, serving MCP requests at the /mcp endpoint. The available tools are: generate_uuid, which returns a UUID (version 4 or 1 as implemented); convert_temperature, which converts temperatures between Celsius and Fahrenheit; and text_statistics, which computes basic text metrics like character count, word count, and line count. Clients using the included sample code (FastMCP client, httpx client, or the curl-based client) can list tools, invoke each tool, and view results via the server-sent events (SSE) stream. To start the server, use the uv tooling as described in the README, which operates the python script in this project and exposes the MCP endpoint at /mcp.
How to install
Prerequisites:
- Python 3.13+
- uv (as described in the project README)
Installation steps:
- Install uv if you haven't already (follow the project’s prerequisites in the README).
- Install project dependencies via uv sync, which will install the required Python packages (e.g., fastmcp, httpx) listed in the repository’s configuration.
- Start the server using uv by running the server script as described: uv run server.py
- (Optional) Verify the server is reachable at http://localhost:8000/mcp and that SSE sessions are established via the Mcp-Session-Id header.
Additional notes
Notes and tips:
- Transport is streamable HTTP with MCP over SSE. The server exposes the /mcp endpoint and uses the Mcp-Session-Id header to manage sessions.
- When testing with curl-based clients or httpx, ensure you parse SSE events correctly to extract tool responses.
- If you modify server.py or the tool implementations, re-run uv sync to ensure dependencies stay aligned with your changes.
- The three tools are implemented in server.py and are invoked by name (generate_uuid, convert_temperature, text_statistics). You can extend with more tools following the project’s pattern.
- The curl client relies on curl and jq and is intended to demonstrate raw HTTP requests and parsing of the MCP protocol payload.
Related MCP Servers
PPTAgent
An Agentic Framework for Reflective PowerPoint Generation
mcp-aktools
📈 提供股票、加密货币的数据查询和分析功能MCP服务器
mcp -odoo
A Model Context Protocol (MCP) server that enables AI assistants to securely interact with Odoo ERP systems through standardized resources and tools for data retrieval and manipulation.
AI-SOC-Agent
Blackhat 2025 presentation and codebase: AI SOC agent & MCP server for automated security investigation, alert triage, and incident response. Integrates with ELK, IRIS, and other platforms.
alris
Alris is an AI automation tool that transforms natural language commands into task execution.
A Unofficial Twitter MCP Server with cookie auth.