mcpField
M
MCP server in Python

MCP server in Python

Local
github.com/mccartykimDeveloper Tools3Updated 89w ago

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

  1. 01Minimal Python MCP server
  2. 02Packaged as a Nix flake
  3. 03Uses uv
  4. 04Stub location resource
  5. 05Current-time tool

Use cases

  1. 01Explore a minimal MCP server example
  2. 02Run a Python MCP demo through Nix
  3. 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.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP 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

Markdown supported

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.