Show HN: Polymcp – Turn Any Python Function into an MCP Tool for AI Agents

15 pointsposted 10 hours ago
by justvugg

Item id: 46746700

4 Comments

rahimnathwani

4 hours 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()

justvugg

3 hours ago

Hi thanks for the comment, I’m not trying to replace FastMCP (or anything else), and I’m not really comparing on the “basic MCP server” use case.

PolyMCP, beyond creating MCP servers over HTTP and stdio, WASM (Pyodide) bundle to run tools in the browser/edge with an “MCP-style” tool interface,provides unified agent/orchestration across multiple MCP servers, plus an Inspector UI and production guardrails (budgets, logging, redaction, allowlists, retries).

The goal is to be a single, end-to-end toolkit for developers: tool exposure + debugging + governance + orchestration.

rahimnathwani

3 hours ago

None of this came across in what you wrote in your Show HN.

justvugg

3 hours ago

because I wanted to introduce this part of PolyMCP that can take you from code with only functions to an MCP.