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

10•justvugg•3h 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

I added a Bluesky comment section to my blog

https://micahcantor.com/blog/bluesky-comment-section.html
150•hydroxideOH-•2h ago•33 comments

BirdyChat becomes first European chat app that is interoperable with WhatsApp

https://www.birdy.chat/blog/first-to-interoperate-with-whatsapp
270•joooscha•3h ago•170 comments

Postmortem: Our first VLEO satellite mission (with imagery and flight data)

https://albedo.com/post/clarity-1-what-worked-and-where-we-go-next
70•topherhaddad•2h ago•11 comments

The Writers Came at Night

https://www.metropolitanreview.org/p/the-writers-came-at-night
16•ctoth•1h ago•2 comments

Raspberry Pi Drag Race: Pi 1 to Pi 5 – Performance Comparison

https://the-diy-life.com/raspberry-pi-drag-race-pi-1-to-pi-5-performance-comparison/
92•verginer•4h ago•42 comments

Memory layout in Zig with formulas

https://raymondtana.github.io/math/programming/2026/01/23/zig-alignment-and-sizing.html
54•raymondtana•6h ago•13 comments

Doing gigabit Ethernet over my British phone wires

https://thehftguy.com/2026/01/22/doing-gigabit-ethernet-over-my-british-phone-wires/
395•user5994461•12h ago•219 comments

Claude Code's new hidden feature: Swarms

https://twitter.com/NicerInPerson/status/2014989679796347375
230•AffableSpatula•8h ago•163 comments

First Design Engineer Hire – Build Games at Gym Class (YC W22)

https://www.ycombinator.com/companies/gym-class-by-irl-studios/jobs/ywXHGBv-design-engineer-senio...
1•hackerews•1h ago

Agent orchestration for the timid

https://substack.com/inbox/post/185649875
41•markferree•3h ago•0 comments

JSON-render: LLM-based JSON-to-UI tool

https://json-render.dev/
40•rickcarlino•3h ago•9 comments

How I estimate work

https://www.seangoedecke.com/how-i-estimate-work/
366•mattjhall•12h ago•209 comments

Shared Claude: A website controlled by the public

https://sharedclaude.com/
26•reasonableklout•14h ago•10 comments

Small Kafka: Tansu and SQLite on a free t3.micro

https://blog.tansu.io/articles/broker-aws-free-tier
39•rmoff•4d ago•2 comments

Ask HN: Gmail spam filtering suddenly marking everything as spam?

97•goopthink•6h ago•74 comments

Maze Algorithms (2017)

http://www.jamisbuck.org/mazes/
74•surprisetalk•1d ago•23 comments

Understanding Rust Closures

https://antoine.vandecreme.net/blog/rust-closures/
22•avandecreme•3h ago•2 comments

Microservices for the Benefits, Not the Hustle (2023)

https://wolfoliver.medium.com/the-purposes-of-microservices-4e5f373f4ea3
19•WolfOliver•3d ago•16 comments

The Concatative Language XY

http://www.nsl.com/k/xy/xy.txt
26•ofalkaed•3h ago•5 comments

The Kept and the Killed (2022)

https://publicdomainreview.org/essay/the-kept-and-the-killed/
17•nomagicbullet•6h ago•2 comments

Poland's energy grid was targeted by never-before-seen wiper malware

https://arstechnica.com/security/2026/01/wiper-malware-targeted-poland-energy-grid-but-failed-to-...
21•Bender•1h ago•0 comments

Show HN: StormWatch – Weather emergency dashboard with prep checklists

https://jeisey.github.io/stormwatch/
13•lotusxblack•2h ago•1 comments

KAOS – The Kubernetes Agent Orchestration System

https://github.com/axsaucedo/kaos
4•axsaucedo•4d ago•1 comments

Tao Te Ching – Translated by Ursula K. Le Guin

https://github.com/nrrb/tao-te-ching/blob/master/Ursula%20K%20Le%20Guin.md
145•andsoitis•5h ago•57 comments

Language may rely less on complex grammar than previously thought: study

https://scitechdaily.com/have-we-been-wrong-about-language-for-70-years-new-study-challenges-long...
15•mikhael•19h ago•4 comments

Show HN: Debugging consent and conversion tracking with a headless scan

https://consentcheck.online/
6•marstay•6d ago•0 comments

MS confirms it will give the FBI your Windows PC data encryption key if asked

https://www.windowscentral.com/microsoft/windows-11/microsoft-bitlocker-encryption-keys-give-fbi-...
383•blacktulip•9h ago•249 comments

Show HN: Open-source Figma design to code

https://github.com/vibeflowing-inc/vibe_figma
19•alepeak•16h ago•6 comments

December in Servo: multiple windows, proxy support, better caching, and more

https://servo.org/blog/2026/01/23/december-in-servo/
116•t-3•5h ago•9 comments

Hung by a thread

https://campedersen.com/rayon-mutex-deadlock
9•ecto•4h ago•12 comments