Settings

Theme

Show HN: FastMCP – A Pythonic way to build Model Context Protocol servers

github.com

6 points by jlowin a year ago · 3 comments · 1 min read

Reader

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

hikerell a year ago

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.

mulmboy a year ago

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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection