Hacker News
Show HN: Gin-MCP – Zero-config bridge to expose Gin APIs as MCP tools
I built gin-mcp to automatically expose existing Gin web APIs as Model Context Protocol (MCP) tools, making them usable by clients like Cursor with minimal effort.
It uses reflection on your *gin.Engine to discover endpoints and infers basic schemas for path and query parameters automatically. The idea is to be zero-configuration by default --- you add it to your existing Gin app, provide a BaseURL, mount the MCP handler (mcp.Mount("/mcp")), and your API becomes available as tools.
For more complex scenarios where inference isn't enough (e.g., specific struct validation, request body definitions), you can explicitly define schemas using mcp.RegisterSchema(method, path, querySchema, bodySchema). You can also filter which endpoints are exposed.
It aims to reduce the boilerplate needed to connect internal APIs to MCP-compatible AI tools, letting you leverage your existing backend services more easily.
Check out the repo for code, examples, and usage details: https://github.com/ckanthony/gin-mcp
Feedback is welcome!
Comments URL: https://news.ycombinator.com/item?id=43720476
Points: 1
# Comments: 0
N-Params vs. Single Param
Article URL: https://www.carlos-menezes.com/single-param-functions/
Comments URL: https://news.ycombinator.com/item?id=43720457
Points: 1
# Comments: 0
Codex CLI fork
Article URL: https://github.com/ymichael/codex
Comments URL: https://news.ycombinator.com/item?id=43720451
Points: 1
# Comments: 0
Whistleblower describes DOGE IT dept rampage at America's labor watchdog
Article URL: https://www.theregister.com/2025/04/17/whistleblower_nlrb_doge/
Comments URL: https://news.ycombinator.com/item?id=43720430
Points: 5
# Comments: 0
High cardinality meets columnar time series system
Article URL: https://www.parseable.com/blog/high-cardinality-meets-columnar-time-series-system
Comments URL: https://news.ycombinator.com/item?id=43720407
Points: 3
# Comments: 1
Amazon unveils a new AI voice model, Nova Sonic
Article URL: https://techcrunch.com/2025/04/08/amazon-unveils-a-new-ai-voice-model-nova-sonic/
Comments URL: https://news.ycombinator.com/item?id=43720384
Points: 2
# Comments: 0
MX Linux 23.6 brings Debian freshness, without the systemd funk
Article URL: https://www.theregister.com/2025/04/17/mx_linux_236/
Comments URL: https://news.ycombinator.com/item?id=43720380
Points: 1
# Comments: 0
Google is gifting a year of Gemini Advanced to every college student in the US
Article URL: https://arstechnica.com/ai/2025/04/google-is-gifting-a-year-of-gemini-advanced-to-every-college-student-in-the-us/
Comments URL: https://news.ycombinator.com/item?id=43720368
Points: 2
# Comments: 0
Skepticism greets claims of a possible biosignature on a distant world
Article URL: https://arstechnica.com/science/2025/04/skepticism-greets-claims-of-a-possible-biosignature-on-a-distant-world/
Comments URL: https://news.ycombinator.com/item?id=43720361
Points: 1
# Comments: 0
Beats Cables Now Available at Apple Stores
Article URL: https://www.macrumors.com/2025/04/17/beats-cables-now-in-apple-stores/
Comments URL: https://news.ycombinator.com/item?id=43720353
Points: 1
# Comments: 0
AI is coming for music, too
Caning, punishment, and prison: more thoughts
Article URL: https://greyenlightenment.com/2025/04/12/caning-punishment-and-prison-more-thoughts/
Comments URL: https://news.ycombinator.com/item?id=43720345
Points: 1
# Comments: 0
What's Wrong with Standardized Tests
Article URL: https://www.betonit.ai/p/perfect-putnam
Comments URL: https://news.ycombinator.com/item?id=43720340
Points: 1
# Comments: 0
Business Metrics Broke the University
Article URL: https://www.compactmag.com/article/how-business-metrics-broke-the-university/
Comments URL: https://news.ycombinator.com/item?id=43720336
Points: 1
# Comments: 0
Want to understand how Claude thinks?
Article URL: https://www.narrativeengine.co.uk/hosted/claude.html
Comments URL: https://news.ycombinator.com/item?id=43720334
Points: 1
# Comments: 0
The Diamond Open-Access "Journal of Robustness Reports"
Article URL: https://www.bayesianspectacles.org/introducing-the-diamond-open-access-journal-of-robustness-reports/
Comments URL: https://news.ycombinator.com/item?id=43720329
Points: 1
# Comments: 0
The "De" in "Decentralization" Stands for "Democracy"
Article URL: https://www.techdirt.com/2025/04/17/the-de-in-decentralization-stands-for-democracy/
Comments URL: https://news.ycombinator.com/item?id=43720316
Points: 4
# Comments: 2
What could happen if the US ends global health funding
Article URL: https://www.nature.com/articles/d41586-025-01191-z
Comments URL: https://news.ycombinator.com/item?id=43720314
Points: 2
# Comments: 0
The Animals That Exist Between Life and Death
Article URL: https://nautil.us/the-animals-that-exist-between-life-and-death-1202592/
Comments URL: https://news.ycombinator.com/item?id=43720287
Points: 1
# Comments: 0
Show HN: I Built a Site to Track U.S. Tariff Updates in Real Time
Hi I'm Ryan, the creator of Tariffstatus.com.
I woke up wondering what tariffs were active and what was scheduled. However, when I started searching the web, it was a quagmire of news sites and long articles that didn't give me a simple and clear answer - the government sites were even worse. Also, I imagine they will be constantly changing. I wanted this for myself, but I'm also hopeful it helps others. I plan to keep it up to date. Many of these tariffs are having and will have a significant impact on both consumers and business owners.
Trying to bring a bit of order to the chaos!
I’d love to hear your feedback, whether positive or negative and any other feature requests or improvements you'd like to see. Thanks so much!
p.s. I know that you could probably use AI/Perplexity to search for this information, but not everyone may know how to do that or has access to those tools.
Comments URL: https://news.ycombinator.com/item?id=43719817
Points: 1
# Comments: 0