nowfound

AI · June 25, 2025

I rawdog a MCP server from scratch in Zig. No SDK

Some time ago I wanted to write a MCP server in Zig but found out there's no real JSON-RPC support in Zig, which MCP needs for communication. I ended up developing a JSON-RPC 2.0 library in Zig and more [1], which had its challenges. So I finally was able to put together a MCP server in Zig. It's built from scratch implementing the protocol messages from the MCP JSON schema. It's actually quite magical to have the LLM calling my MCP server [2]. The work is not too bad. Most of the hard work has already been done in the JSON-RPC library. [1]…

I rawdog a MCP server from scratch in Zig. No SDK launched on June 25, 2025 with 15 votes, #1,055 of 7,999 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 1 year on.

Visit github.com ↗Alternativestop 13% of June 2025

In plain words

This project provides a Model Context Protocol (MCP) server implementation built entirely in Zig without an SDK. The creator developed a JSON-RPC 2.0 library in Zig to enable MCP communication, then used it to build a MCP server from scratch by implementing protocol messages from the MCP JSON schema. The result allows large language models to call the MCP server directly. It targets developers working with Zig who need MCP server capabilities.

written from the facts on this page · September 2026

From the sources

A Lightweight Zig Library for JSON-RPC 2.0. Contribute to williamw520/zigjr development by creating an account on GitHub.

In the maker’s words, at launch

Some time ago I wanted to write a MCP server in Zig but found out there's no real JSON-RPC support in Zig, which MCP needs for communication. I ended up developing a JSON-RPC 2.0 library in Zig and more [1], which had its challenges. So I finally was able to put together a MCP server in Zig. It's built from scratch…

Does a similar job

all alternatives →
  • MCP server for up-to-date Zig standard library documentation2025 · github.com · ▲27

    Hey HN! I made this because Zig's stdlib changes so much and outdated docs are a problem. Server fetches the latest documentation directly from the ziglang.org and makes it available through the MCP, so LLM can query stdlib functions and builtins. Link: https://github.com/zig-wasm/zig-mcp

  • CSS Gridish2018 · ibm.github.io · ▲133

    Greetings, This is a link to our learning guide to make your own MCP server in C/C++ (with no other dependencies). If you wanted to make one from scratch but needed some insight into dealing with MCP messages: the I/O flow, JSON parsing, and request dispatch, grab the teaching version tagged mcp/teaching/v1.0.0 in the repository. The JSON parsing in C would have been a hurdle, but then there's this amusing story: Eric: "Let's create a helloWorld MCP server in C." Gemini: "That will be somewhat difficult, there are easier ways." Eric: "Why is it difficult??" (the second…

  • Cloud-Ready Postgres MCP Server2025 · github.com · ▲167

    Hey HN, I built pg-mcp, a Model Context Protocol (MCP) server for PostgreSQL that provides structured schema inspection and query execution for LLMs and agents. It's multi-tenant and runs over HTTP/SSE (not stdio) Features - Supports multiple database connections from multiple agents - Schema Introspection: Returns table structures, types, indexes and constraints; enriched with descriptions from pg_catalog. (for well documented databases) - Read-Only Queries: Controlled execution of queries via MCP. - EXPLAIN Tool: Helps smart agents optimize queries before execution. - Extension…

  • OS
    Open-Source MCP Server for Context and AI Tools2025 · ▲43

    Large Language Models (LLMs) are powerful, but they’re limited by fixed context windows and outdated knowledge. What if your AI could access live search, structured data extraction, OCR, and more—all through a standardized interface? We built the JigsawStack MCP Server, an open-source implementation of the Model Context Protocol (MCP) that lets any AI model call external tools effortlessly. Here’s what it unlocks: - Web Search & Scraping: Fetch live information and extract structured data from web pages. - OCR & Structured Data Extraction: Process images, receipts, invoices, and handwritten…

  • Distributed JMAP and IMAP Servers in Rust2022 · github.com · ▲190

    I am happy to announce Stalwart JMAP [1], an open-source JSON Meta Application Protocol server that aims to be scalable, robust and secure. Some of its key features are: - JMAP Core, JMAP Mail and JMAP over WebSocket full compliance. - IMAP4 rev2/1 support via Stalwart IMAP, an imap-to-jmap proxy [2]. - Scalable and fault tolerant: consensus over Raft, node autodiscovery over gossip and read-only replicas. - RocksDB backend with full-text search support in 17 languages. - OAuth 2.0 authorization code and device authorization flows. - Domain Keys Identified Mail (DKIM) message signing. -…

  • ST
    Simple to build MCP servers that easily connect with custom LLM calls2025 · mirascope.com · ▲57

    Hi! After learning about MCP, I'm really excited about the future of provider-agnostic, re-usable tooling. Unfortunately I've found that while it's easy to implement an MCP server for use with tools that support it (such as Claude Desktop), it's not as easy to implement your own support (such as integrating an MCP server into your own LLM application). We implemented a thin MCP wrapper that easily integrates with Mirascope calls so that you can hook up an MCP server and client super easily to any supported LLM provider. Excited to see what people build with this!

More ai this month

the category →
  • Video model that turns script into viral social media videos

    AI · 18d ago · spira.ai

  • The browser where Claude Code and Codex work beside you

    AI · 18d ago · rill.love

  • Kolibri is Aleph Alpha

    AI · 20d ago · tej.as

  • Paintings by AI models: programs run through a simulation of oil paint.

    AI · 21d ago · stillwet.art

  • A real-time world model you can explore and change

    AI · 30d ago · world.pixverse.video

  • Beam.win▲378

    Run AI agents on one Mac and use its windows on another

    AI · 4d ago · beam.win

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, June 2025

the whole month →
  • IM

    Hey HN! Pilots everywhere are required to keep a logbook of all their flying hours, aircraft, airports, and so on. Since I track everything digitally (some people still just use paper logbooks!), I put together some data visualizations and a few 3D globes to show my flying history. This globe is probably my favourite so far: https://jameshard.ing/pilot/globes/all If you’ve got ideas for other graphs or ways to show this kind of data, I’d love to hear them!

    Life & fun · 2025 · jameshard.ing

  • Stunning presentations with AI. No design skills required.

    AI · 2025 · chroniclehq.com

  • Build native mobile apps for iOS and Android without code.

    Dev tools · 2025 · bble.io

  • Twenty▲989

    Build your Enterprise CRM with an AI-friendly SDK

    Dev tools · 2025 · twenty.com

  • All your connections, across all your socials.

    AI · 2025 · pally.com

  • I was the main contributor to workout.lol, an open-source fitness app to easily build a workout routine. The project had traction (1.4k GitHub stars, 95 forks, ~20K visits/month), but was eventually sold due to video licensing hurdles. The new owner stopped maintaining it, and the repo went abandoned. Over the next 9 months, I sent 15 emails to try to save it : no replies. Feature requests & issues were ignored. The community was left with a "broken" tool let's say. I couldn't just let it die So I built the new version from scratch with the same open-source spirit, but a better…

    Dev tools · 2025 · github.com