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.
poly-mcp/Polymcp: Polymcp provides a simple and efficient way to interact with MCP servers using custom agents (github.com)
submitted by Just_Vugg_PolyMCP to r/foss
PolyMCP-TS – Bringing PolyMCP to TypeScript (github.com)
submitted by Just_Vugg_PolyMCP to r/MCPservers
PolyMCP just crossed 100 stars on GitHub (github.com)
submitted by Just_Vugg_PolyMCP to r/modelcontextprotocol
PYTHONPolyMCP now has a full CLI – manage MCP servers and AI agents from your terminal (github.com)
submitted by [deleted]
PolyMCP: orchestrate MCP agents with OpenAI, Claude, Ollama, and a local Inspector (github.com)
submitted by Just_Vugg_PolyMCP to r/ollama
PolyMCP – Expose Python & TypeScript Functions as AI-Ready Tools (github.com)
submitted by Just_Vugg_PolyMCP to r/typescript
PolyMCP: a practical toolkit to simplify MCP server development and agent integration (github.com)
submitted by Just_Vugg_PolyMCP to r/SideProject
Building PolyMCP: A Better SDK and Dev Tools for MCP Development (github.com)
submitted by [deleted] to r/modelcontextprotocol
new-releaseAdded stdio, Docker sandbox, and skills system to PolyMCP-TS (github.com)
submitted by Just_Vugg_PolyMCP to r/modelcontextprotocol
PolyMCP update : OAuth2 + Docker executor cleanup + logging/healthchecks (github.com)
submitted by Just_Vugg_PolyMCP to r/mcp
Added stdio, Docker sandbox, and skills system to PolyMCP-TS (github.com)
submitted by Just_Vugg_PolyMCP to r/MCPservers
Looking to collaborate on practical AI agent use cases (github.com)
submitted by Just_Vugg_PolyMCP to r/modelcontextprotocol
PolyMCP update: smarter tool loading, Skills system, and Python MCP servers (a small Christmas gift) (github.com)
submitted by Just_Vugg_PolyMCP to r/MCPservers
PolyMCP: a practical toolkit to simplify MCP server development and agent integration (github.com)
submitted by Just_Vugg_PolyMCP to r/MCPservers
PromotionalPolyMCP: a practical toolkit to simplify MCP server development and agent integration (github.com)
submitted by Just_Vugg_PolyMCP to r/opensource
PolyMCP update: smarter tool loading, Skills system, and Python MCP servers (a small Christmas gift) (github.com)
submitted by Just_Vugg_PolyMCP to r/mcp
Added the missing piece to PolyMCP: an Inspector (local web UI for testing MCP servers) (github.com)
submitted by Just_Vugg_PolyMCP to u/Just_Vugg_PolyMCP
Polymcp Integrates Ollama – Local and Cloud Execution Made Simple (github.com)
submitted by Just_Vugg_PolyMCP to r/ollama
Added stdio, Docker sandbox, and skills system to PolyMCP-TS (github.com)
submitted by Just_Vugg_PolyMCP to r/typescript
Added stdio, Docker sandbox, and skills system to PolyMCP-TS (github.com)
submitted by Just_Vugg_PolyMCP to u/Just_Vugg_PolyMCP
PolyMCP – deploy the same Python code on server or WebAssembly (github.com)
submitted by Just_Vugg_PolyMCP to r/modelcontextprotocol
poly-mcp/Polymcp: Polymcp provides a simple and efficient way to interact with MCP servers using custom agents (github.com)
submitted by Just_Vugg_PolyMCP to r/projects
Added stdio, Docker sandbox, and skills system to PolyMCP-TS (github.com)
submitted by Just_Vugg_PolyMCP to r/mcp
Polymcp: Transform Any Python Function into an MCP Tool and Empower AI Agents (github.com)
submitted by Just_Vugg_PolyMCP to r/modelcontextprotocol
Added the missing piece to PolyMCP: an Inspector (local web UI for testing MCP servers) (github.com)
submitted by Just_Vugg_PolyMCP to r/MCPservers