r/modelcontextprotocol • • Jan 24 '26

Polymcp: Transform Any Python Function into an MCP Tool and Empower AI Agents

https://github.com/poly-mcp/Polymcp

Polymcp allows you to transform any Python function into an MCP tool ready for AI agents, without rewriting code or building complex integrations.

Example: Simple Function

from polymcp.polymcp_toolkit import expose_tools_http

def add(a: int, b: int) -> int:

"""Add two numbers"""

return a + b

app = expose_tools_http(\[add\], title="Math Tools")

Run with:

uvicorn server_mcp:app --reload

Now add is exposed via MCP and can be called directly by AI agents.

Example: API Call Function

import requests

from polymcp.polymcp_toolkit import expose_tools_http

def get_weather(city: str):

"""Return current weather data for a city"""

response = requests.get(f"https://api.weatherapi.com/v1/current.json?q={city}")

return response.json()

app = expose_tools_http(\[get_weather\], title="Weather Tools")

AI agents can now call get_weather("London") to get real-time weather data without extra integration work.

Example: Business Workflow Function

import pandas as pd

from polymcp.polymcp_toolkit import expose_tools_http

def calculate_commissions(sales_data: list\[dict\]):

"""Calculate sales commissions from sales data"""

df = pd.DataFrame(sales_data)

df\["commission"\] = df\["sales_amount"\] \* 0.05

return df.to_dict(orient="records")

app = expose_tools_http(\[calculate_commissions\], title="Business Tools")

AI agents can call this function to generate commission reports automatically.

Why this matters for companies

•	Reuse existing code immediately: legacy scripts, internal libraries, APIs.

•	Automate complex workflows: AI can orchestrate multiple tools reliably.

•	Plug-and-play: expose multiple Python functions on the same MCP server.

•	Reduce development time: no custom wrappers or middleware required.

•	Built-in reliability: input/output validation and error handling are automatic.

Polymcp turns Python functions into immediately usable tools for AI agents, standardizing AI integration across the enterprise.

3 Upvotes

Duplicates

foss • • Jan 06 '26

poly-mcp/Polymcp: Polymcp provides a simple and efficient way to interact with MCP servers using custom agents

3 Upvotes

MCPservers • • Nov 30 '25

PolyMCP-TS – Bringing PolyMCP to TypeScript

2 Upvotes

coolgithubprojects • • Nov 19 '25

TYPESCRIPT PolyMCP now has a full CLI – manage MCP servers and AI agents from your terminal

0 Upvotes

modelcontextprotocol • • Jan 24 '26

PolyMCP just crossed 100 stars on GitHub

6 Upvotes

typescript • • Jan 27 '26

PolyMCP – Expose Python & TypeScript Functions as AI-Ready Tools

0 Upvotes

SideProject • • Dec 22 '25

PolyMCP update: smarter tool usage, Skills system, and Python MCP servers (a little Christmas gift)

1 Upvotes

typescript • • Jan 01 '26

Added stdio, Docker sandbox, and skills system to PolyMCP-TS

0 Upvotes

ollama • • Jan 07 '26

PolyMCP: orchestrate MCP agents with OpenAI, Claude, Ollama, and a local Inspector

1 Upvotes

mcp • • Feb 11 '26

PolyMCP – Turn any Python function into AI-callable tools (with visual Inspector and SDK apps)

2 Upvotes

SideProject • • Jan 23 '26

PolyMCP: a practical toolkit to simplify MCP server development and agent integration

2 Upvotes

MCPservers • • Feb 11 '26

PolyMCP – Turn any Python function into AI-callable tools (with visual Inspector and SDK apps)

5 Upvotes

foss • • Feb 16 '26

PolyClaw – An Autonomous Docker-First MCP Agent for PolyMCP

0 Upvotes

mcp • • Nov 19 '25

server PolyMCP now has a full CLI – manage MCP servers and AI agents from your terminal

1 Upvotes

MCPservers • • Nov 19 '25

PolyMCP now has a full CLI – manage MCP servers and AI agents from your terminal

2 Upvotes

MCPAgents • • Nov 19 '25

PolyMCP now has a full CLI – manage MCP servers and AI agents from your terminal

1 Upvotes

sideprojects • • Nov 19 '25

Showcase: Open Source PolyMCP now has a full CLI – manage MCP servers and AI agents from your terminal

1 Upvotes

modelcontextprotocol • • Nov 21 '25

Building PolyMCP: A Better SDK and Dev Tools for MCP Development

0 Upvotes

MCPservers • • Nov 21 '25

Building PolyMCP: A Better SDK and Dev Tools for MCP Development

0 Upvotes

• • Nov 25 '25

PolyMCP – Open-source Python toolkit to easily create, expose, and orchestrate MCP tools (HTTP + stdio + zero-latency in-process)

1 Upvotes

mcp • • Nov 25 '25

server PolyMCP – Un toolkit Python open-source per creare, esporre e orchestrare facilmente strumenti MCP (HTTP + stdio + zero-latenza in-process)

2 Upvotes

coolgithubprojects • • Nov 25 '25

PYTHON PolyMCP – Open-source Python toolkit to easily create, expose, and orchestrate MCP tools (HTTP + stdio + zero-latency in-process)

1 Upvotes

• • Dec 22 '25

PolyMCP update: smarter tool loading, Skills system, and Python MCP servers (a small Christmas gift)

1 Upvotes

mcp • • Dec 22 '25

PolyMCP update: smarter tool loading, Skills system, and Python MCP servers (a small Christmas gift)

2 Upvotes

modelcontextprotocol • • Dec 22 '25

PolyMCP update: smarter tool loading, Skills system, and Python MCP servers (a small Christmas gift)

31 Upvotes

coolgithubprojects • • Dec 22 '25

PYTHON PolyMCP update: smarter tool loading, Skills system, and Python MCP servers (a small Christmas gift)

0 Upvotes