6 points jlowin | 4 comments | | HN request time: 0.72s | source

Hi HN --

Since Anthropic announced the Model Context Protocol (MCP) last week [1], I've been excited about giving Claude new capabilities through my custom servers. But while MCP is powerful, implementing the protocol correctly requires a lot of low-level boilerplate code. I found myself wanting something like FastAPI - a high-level framework that would let me focus on building features, not servers.

After some hacking, I'm sharing FastMCP: a Pythonic framework for building MCP servers. FastMCP uses decorators to transform normal functions into MCP tools, resources, templates, and prompts, handling all the protocol and server complexity so you can focus and iterate quickly.

This is a young project that didn't exist 24 hours ago, but it's ready for some kicking so I'd welcome any thoughts!

[1] HN Link: https://news.ycombinator.com/item?id=42237424

1. mulmboy ◴[] No.42287042[source]
Amazing! I am half way through building exactly this (and was even toying with the exact same name) but this is better plus you've beaten me to release. I have a heap of ideas and will jump in on an issue or discussion later today, would love to ditch my work and adopt this
replies(1): >>42288447 #
2. jlowin ◴[] No.42288447[source]
Nice! Would love to collaborate
3. hikerell ◴[] No.42288512[source]
MCP is a bit cumbersome, and compared to the official HTTP examples, I prefer the routing definition method of FastAPI. I am interested in taking a look at your project.