MCP Catalogs
Home

mcpc

by micl2e2·27·Score 38

A cross-platform C SDK for MCP implementing tools, resources, prompts and completion with modern C23.

developer-toolsai-llmops-infra
6
Forks
1
Open issues
11 mo ago
Last commit
2d ago
Indexed

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:

you:Building high-performance MCP servers with minimal dependencies
you:Creating resource-constrained environment MCP implementations
you:Developing cross-platform MCP tools with native performance
you:Should I prefer mcpc over other SDKs?
you:What platforms does mcpc support?

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

mcp-jsmcp-pythonmcp-tsmcp-rustmcp-cpp

Installation

Installation

Linux, Cygwin, MSYS2, macOS, etc.

Prerequisites:

  • GNU Make
cd mcpc
make && make tst && make install

Windows 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 tst

Option 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.

Compare mcpc with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.