NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Show HN: Polymcp – Turn Any Python Function into an MCP Tool for AI Agents
rahimnathwani 42 minutes ago [-]
If you want people to adopt your tool, you may need to explain any advantage this has over fastmcp.

It's already easy to expose a python function as an MCP server. From the fastmcp docs:

  from fastmcp import FastMCP
  
  mcp = FastMCP("Demo ")
  
  @mcp.tool
  def add(a: int, b: int) -> int:
      """Add two numbers"""
      return a + b
  
  if __name__ == "__main__":
      mcp.run()
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 01:49:34 GMT+0000 (Coordinated Universal Time) with Vercel.