frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

5•justvugg•1h ago
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 = 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.

API 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 call get_weather("London") to get real-time weather data instantly.

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 now generate commission reports automatically.

Why it matters for companies • Reuse existing code immediately: legacy scripts, internal libraries, APIs. • Automate complex workflows: AI can orchestrate multiple tools reliably. • Plug-and-play: multiple Python functions exposed on the same MCP server. • Reduce development time: no custom wrappers or middleware needed. • Built-in reliability: input/output validation and error handling included.

Polymcp makes Python functions immediately usable by AI agents, standardizing integration across enterprise software.

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

Davos 2026: Special Address by Mark Carney, Prime Minister of Canada

https://www.weforum.org/stories/2026/01/davos-2026-special-address-by-mark-carney-prime-minister-...
1•lemming•1m ago•0 comments

Sloponomics: Who wins and loses in the AI-content flood?

https://www.economist.com/business/2025/10/16/sloponomics-who-wins-and-loses-in-the-ai-content-flood
1•paulpauper•3m ago•0 comments

Show HN: An AI Agent for Slack

1•owendarko•3m ago•0 comments

What Happened to X? [video]

https://www.youtube.com/watch?v=6TTE8g4ouBk
2•Kapura•4m ago•0 comments

The Unreasonable Effectiveness of Failure

https://benoitessiambre.com/fail.html
1•BenoitEssiambre•4m ago•0 comments

GitLab patch release 18.8.2 released

https://about.gitlab.com/releases/2026/01/21/patch-release-gitlab-18-8-2-released/
1•based2•7m ago•0 comments

Trump administration unlawfully suspended EV charger program, U.S. judge rules

https://www.cnbc.com/2026/01/24/us-judge-trump-admin-unlawfully-suspended-ev-charger-program.html
3•donsupreme•7m ago•0 comments

Syntux: JSON to UI for Websites

https://www.getsyntux.com/
3•TheDever•7m ago•0 comments

Show HN: I made an app that blurs my screen when I slouch

https://tomjohnell.com/posturr-a-macos-app-that-blurs-your-screen-when-you-slouch/
1•tjohnell•7m ago•0 comments

Show HN: Kontra, a data quality validator that avoids unnecessary full scans

https://github.com/Saevarl/Kontra
2•saevarl•9m ago•0 comments

Sally Mann Says 'Film Is So Expensive' and Has Started Shooting Digital

https://petapixel.com/2026/01/20/sally-mann-says-film-is-so-expensive-and-has-started-shooting-di...
1•PaulHoule•10m ago•0 comments

Homebrew is great on Linux (2023)

https://www.ypsidanger.com/homebrew-is-great-on-linux/
1•shaicoleman•11m ago•0 comments

Chinese scientists shrink semiconductor chip into fibre as thin as human hair

https://www.scmp.com/news/china/science/article/3341025/chinese-scientists-shrink-semiconductor-c...
1•based2•12m ago•0 comments

Msty – privacy-first AI studio

https://msty.ai/
1•tillulen•13m ago•0 comments

Female dogs evaluate levels of competence in humans

https://www.sciencedirect.com/science/article/abs/pii/S037663572200170X
1•binning•14m ago•0 comments

Adrian Kosmaczewski – Being a Developer After 40 [video]

https://www.youtube.com/watch?v=GQx_beRMHVg
1•summarity•14m ago•0 comments

Headless browser automation CLI for AI agents. (Rust)

https://agent-browser.dev/
1•franze•16m ago•0 comments

Java – Integrity by Design Through Ensuring Illegal States Are Unrepresentable

https://javajanitorjim.substack.com/p/java-janitor-jim-integrity-by-design
2•jimofl•17m ago•1 comments

How to Speak Davosian – For Beginners

https://www.swissinfo.ch/eng/foreign-affairs/how-to-speak-davosian-for-beginners/90798049
3•cainxinth•20m ago•1 comments

Clawdbot Bought Me a Car

https://aaronstuyvenberg.com/posts/clawd-bought-a-car
1•sathyabhat•21m ago•0 comments

Show HN: MonoSuite – Minimal productivity tools I built for my ADHD brain

https://monosuite.app/
2•georgedelair•21m ago•0 comments

Jürgen Habermas Social theorist – critical theory and pragmatism

https://en.wikipedia.org/wiki/J%C3%BCrgen_Habermas
1•based2•21m ago•0 comments

Vertical Aerospace wants to 'democratize' urban air travel with Valo air taxi

https://finance.yahoo.com/news/vertical-aerospace-wants-to-democratize-urban-air-travel-with-its-...
1•erickhill•22m ago•0 comments

How to audit medical bills against CPT codes and the No Surprises Act

https://suretyinsights.com/blog/eob-vs-bill-how-to-spot-medical-billing-errors
3•insuranceguru•23m ago•0 comments

How ad business broke tech

https://zenprivacy.net/blog/how-ad-business-broke-tech/
1•anfragment•23m ago•0 comments

ChatGPT's Favicon Is Missing from Google Search

https://growtika.com/blog/chatgpt-favicon-missing
1•Growtika•24m ago•0 comments

Apple turning to Intel for future iPhone chips, analyst reaffirms

https://9to5mac.com/2026/01/23/apple-turning-to-intel-for-future-iphone-chips-analyst-reaffirms/
6•jerhewet•25m ago•1 comments

Robotic Heart Surgery in Practice [video]

https://www.youtube.com/watch?v=g4Qypk2F0p8
3•Lwrless•25m ago•0 comments

Show HN: I built a no-sign up extension to help tab hoarders(Vanilla JavaScript)

https://chromewebstore.google.com/detail/adhd-tabs/dljaecjofhiejdipdfciddalgfnhnadi
1•sanjayreddy571•27m ago•0 comments

I added a Bluesky comment section to my blog

https://micahcantor.com/blog/bluesky-comment-section.html
21•hydroxideOH-•29m ago•2 comments