About Simple MCP Server
A minimal example of an MCP server built with the MCP Python SDK. It uses local stdio transport and includes instructions for setting up a virtual environment and running the server.
Key features
- 01Uses the MCP Python SDK
- 02Implements local stdio transport
- 03Sets up a virtual environment with uv
- 04Runs with mcp dev server.py
Use cases
- 01Exploring a basic Python MCP server
- 02Trying local stdio transport
- 03Running the example with the MCP development command
MCP support
Implements an MCP server using the MCP Python SDK and local stdio transport, for use with MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMESimple MCP Server
-
simple example using MCP Python SDK from Anthoropic : https://github.com/modelcontextprotocol/python-sdk
-
This example implement stdio transport type or local
Create Virtual environment
- using uv to create venv
uv venv
- activate virtual environment
sourece .venv/bin/activate
- install dependencies
uv sync
How to run the project
mcp dev server.py
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.