Zod Interop?

I'm seeing a lot of MCP tools exposing Zod-based APIs, which is annoying. I'm sure this has been discussed before, but is there a way to use an Arktype schema in place of Zod?

Here's an example from https://github.com/punkpeye/fastmcp where Zod is used but I'd like to use Arktype:

server.addTool({
  name: "add",
  description: "Add two numbers",
  parameters: z.object({
    a: z.number(),
    b: z.number(),
  }),
  execute: async (args) => {
    return String(args.a + args.b);
  },
});


The screenshot is another example from https://modelcontextprotocol.io/quickstart/server
image.png
GitHub
A TypeScript framework for building MCP servers. Contribute to punkpeye/fastmcp development by creating an account on GitHub.
Model Context Protocol
Get started building your own server to use in Claude for Desktop and other clients.
Was this page helpful?