←back to thread

6 points jlowin | 1 comments | | HN request time: 2.368s | 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. 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.