About MCP server in Python
MCP server in Python is a minimal Python MCP server packaged in a Nix flake and using uv. It is a small demo that exposes a stub location and a tool for getting the current time.
Key features
- 01Minimal Python MCP server
- 02Packaged as a Nix flake
- 03Uses uv
- 04Stub location resource
- 05Current-time tool
Use cases
- 01Explore a minimal MCP server example
- 02Run a Python MCP demo through Nix
- 03Test location and current-time responses
MCP support
Exposes a stub location and a current-time tool to 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 READMEMCP server in Python
also nixified in uv
This project is derived from the template at
nix flake init --template "github:nulladmin1/nix-flake-templates#uv"
And I am very thankful he figured out making python happy with nix.
To add to your Claude config:
"minimal-mcp-in-nix": {
"command": "nix",
"args": [
"run",
"github:mccartykim/minimal-mcp-in-nix",
]
}
This is a very simple MPC demo that offers a stub location that just says where I'm presenting my demo for the time being, plus a tool to get the current time.
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.