preloader

MCP endpoints support

🗓️ Last updated on May 27, 2025 | 3 | Improve this page

Introduction

You know that API and AI are closely related and that tomorrow—and even today—LLMs and AI agents will be among the top consumers of your APIs. It becomes crucial to be able to check how AI Agents will reuse your API as tools!

Starting with version 1.12.0, Microcks automatically translates your API mocks into Model Context Protocol (or MCP)- aware endpoints! A new MCP Server section in a mock property gives you access to MCP-compatible endpoints to integrate your mocks with your favorite tool.

image

As you can see in the capture above, Microcks provides two different kinds of endpoints and transports:

  • HTTP SSE Endpoint as defined in the 2024-11-05 version of the protocol,
  • HTTP Streamable Endpoint as defined in the 2025-03-26 version of the protocol.

Depending on the tool you’re using - MCP Inspector, Postman, Claude or Cherry Studio are the ones we tested - you’ll need one or the other endpoint based on how they support MCP.

OpenAPI mocks support

The different operations of an API mock baked by an OpenAPI specification are automatically published as MCP tools.

Microcks reuses elements from the schemas found in the OpenAPI spec to translate them into descriptive MCP input schemas so that the agent calling the tool is aware of expected input arguments. As MCP is based on the JSON-RPC, we don’t have all the REST possibilities that accept operation arguments in body, path, query and headers. Consequently, Microcks wraps those elements into the params.arguments field of an incoming MCP request.

Check this video below that demonstrates OpenAPI-to-MCP Server conversion in Microcks:

GraphQL mocks support

The queries and mutations of an API mock baked by a GraphQL schema are automatically published as MCP tools.

Microcks reuses elements from the GraphQL schema to translate them into descriptive MCP input schemas so that the agent calling the tool is aware of expected input arguments. As of today, the results returned by Microcks will not be filtered and will contain all the properties and relations that are specified in your mock responses.

Check this video below that demonstrates GraphQL-to-MCP Server conversion in Microcks:

gRPC mocks support

The different rpc unary calls of a gRPC service defined in a Protobuffer contract are automatically published as MCP tools.

Microcks reuses elements from the Protobuffer contract to translate them into descriptive MCP input schemas so that the agent calling the tool is aware of expected input arguments.

Check this video below that demonstrates gRPC-to-MCP Server conversion in Microcks:

Final note

As MCP - and AI integration at large - is a fast-moving part, expect some important and breaking changes in the coming release. If something doesn’t work as expected, please check Microcks nightly version by switching the container image you’re using.

Still Didn’t Find Your Answer?

Join our community and get the help you need. Engage with other members, ask questions, and share knowledge to resolve your queries and expand your understanding.

Join the community