mcpc
by micl2e2·★ 27·Score 38
A cross-platform C SDK for MCP implementing tools, resources, prompts and completion with modern C23.
Overview
mcpc is a Model Context Protocol library written in modern C23 that provides native bridges between low-level infrastructure and AI models. It supports tools, resources, prompts, and completion features with STDIO transport, with HTTP transport planned. The SDK emphasizes maximum capability using the latest C language features while maintaining backward compatibility to C11 for broader platform support.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose mcpc when building performance-critical MCP servers or clients where native C execution and minimal dependencies are priorities, especially for embedded systems or cross-platform deployment without runtime dependencies.
When NOT to choose this
Avoid mcpc if you're developing rapid prototypes or need higher-level abstractions, as it requires manual memory management and doesn't provide the convenience of Python or JavaScript SDKs.
Comparable tools
Installation
Installation
Linux, Cygwin, MSYS2, macOS, etc.
Prerequisites:
- GNU Make
cd mcpc
make && make tst && make installWindows CMD/PS/VS
Prerequisites:
- Visual Studio
- GNU Make (
winget install ezwinports.make)
Option 1 (CMD/PS): Open "x64 Native Tools Command Prompt", then:
cd mcpc
make && make tstOption 2 (Visual Studio): "File" - "Open" - "CMake", "Build" - "Build All"
FAQ
- Should I prefer mcpc over other SDKs?
- It depends on your use case. If you prefer native performance and minimum software requirements, mcpc is suitable. Otherwise, consider Python or JavaScript SDKs for more intuitive high-level APIs.
- What platforms does mcpc support?
- mcpc supports Linux, Windows, and macOS with various compiler configurations. It aims to support as many C compilers as possible, with C23 as the target standard but fallback to C11 for broader compatibility.
On Hacker News
Recent discussion from the developer community.
- Story by chrsw · 2025-05-30
Compare mcpc with
Last updated · Auto-generated from public README + GitHub signals.