About Mcp Server Sample
Mcp Server Sample is a small Python project demonstrating an MCP server setup. Its example includes a tool, a greeting resource, and a translation prompt, and can be run with the MCP Inspector.
Key features
- 01Python virtual environment setup
- 02Example MCP tool
- 03Greeting resource
- 04Translation prompt
- 05MCP Inspector launch command
Use cases
- 01Try a minimal MCP server setup
- 02Inspect an example tool, resource, and prompt
MCP support
The sample demonstrates an MCP server with a tool, a greeting resource, and a translation prompt.
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 READMEsettings
create a python virtual environment.
uv venv
source .venv/bin/activate
uv add "mcp[cli]"
result
start mcp inspector.
mcp dev ./server.py
add tool

greeting resource

translation prompt

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.