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

via api.weatherapi.com

Short excerpt below. Read at the original source.

I built Polymcp, a framework that allows you to transform any Python function into an MCP (Model Context Protocol) tool ready to be used by AI agents. No rewriting, no complex integrations. Examples Simple function: from polymcp.polymcp_toolkit import expose_tools_http def add(a: int, b: int) -> int: “””Add two numbers””” return a + b app = […]

Read at Source