What macros are available in mcp-c?
`EXPORT` marks a struct or function for export; `EXPORT_AS(name)` gives it a custom name for tool mapping; `DES("description")` adds JSON schema descriptions.
@ZenWayne
Basic information
mcp server frarmwork written in c, developing efficiently and effortlessly
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
mcp-c is a framework written in C for building Model Context Protocol (MCP) servers efficiently. It uses annotation-based code generation to automate boilerplate, letting developers focus only on writing the server functions.
Write your MCP tools in src/mcp_server using the EXPORT and EXPORT_AS macros on functions and structs. Build with cmake -B build -S . && cmake --build ., then run the generated binary with ./mcpc (Windows users need vcpkg). The build process runs a code generator that creates serialization code and tool lists automatically.
EXPORT_AS macro.DES macro.`EXPORT` marks a struct or function for export; `EXPORT_AS(name)` gives it a custom name for tool mapping; `DES("description")` adds JSON schema descriptions.
Write a C function that returns `cJSON*` and annotate it with `EXPORT_AS(tool_name)`. The tool name can be anything, including `tools/list` for the standard MCP list endpoint.
It generates `generated_bridge_code.c` (JSON‑to‑struct parsing) and `generated_function_signatures.c` (struct definitions and the `get_all_function_signatures_json` function).
You need cmake, clang, and [cJSON](https://github.com/DaveGamble/cJSON). On Windows, vcpkg is also required.
It follows a `$defs`-based JSON Schema draft‑07 format, with separate definitions for enums, objects, and their properties, plus a `tools` array listing each exported tool and its input schema.

Soar Flight Booking MCP is a remote MCP server available at https://mcp.soar.flights.
Free moving quotes for AI agents from Next Generation Movers, a licensed interstate mover (USDOT 3764697). US long-distance nationwide and local DC/MD/VA. Indicative ballpark price and booking options; optional $0.01 x40

A free remote MCP server for The Living Bread. Bible passages read word for word from a stored public domain text with an evidence label, keyword search and cross references, real churches, gatherings and prayer groups w
A search tool helps dev to solve the naming things problem.
🚀 The fast, Pythonic way to build MCP servers and clients.
Comments