MCP server

Our API tools, inside your AI assistant

Add testingapis.com to Claude, Cursor, VS Code or any assistant that speaks MCP, and it can validate your OpenAPI specs and JSON Schemas, turn cURL commands into code, generate types, convert API descriptions and fetch test data while it works, with the same results as the tools on this site. Free, with no sign-up and no key.

https://testingapis.com/mcp

Add it to your assistant

Claude (claude.ai and the desktop app)

Open Settings → Connectors, choose Add custom connector, name it testingapis and paste the URL.

Claude Code

Run this in a terminal:

Terminal
claude mcp add --transport http testingapis https://testingapis.com/mcp

Cursor

Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

JSON
{
  "mcpServers": {
    "testingapis": {
      "url": "https://testingapis.com/mcp"
    }
  }
}

VS Code (GitHub Copilot agent mode)

Add this to .vscode/mcp.json in your project, or run MCP: Add Server from the command palette:

JSON
{
  "servers": {
    "testingapis": {
      "type": "http",
      "url": "https://testingapis.com/mcp"
    }
  }
}

ChatGPT, Windsurf and other clients

Add a remote MCP server (Streamable HTTP) with the URL above. No authentication is needed.

The tools, and what to ask

You don't call them by name: ask in your own words, and the assistant picks the tool. Every answer links to the tool's page here, to see the result in full.

ToolWhat it doesTry asking
validate_openapiFinds the mistakes in an OpenAPI or Swagger spec, with line numbers“Validate the OpenAPI spec in openapi.yaml”
validate_json_schemaChecks JSON against a JSON Schema and lists every error“Does this response match the schema in user.schema.json?”
generate_json_schemaCreates a JSON Schema from a JSON sample“Write a JSON Schema for this API response”
json_to_typesTypeScript, Go, Python, Java, C#, Kotlin or Rust types from JSON“Generate Go structs for this JSON”
curl_to_codeTurns a cURL command into Python, JavaScript, Go, Java, C# or PHP“Convert this curl command to Python requests”
convert_api_specSwagger to OpenAPI 3.1, Postman to OpenAPI, OpenAPI to Postman or cURL“Convert our Swagger 2.0 file to OpenAPI 3.1 YAML”
query_jsonpathRuns a JSONPath query (RFC 9535) on JSON“Which products in this JSON cost less than 10?”
explain_cronReads a cron expression in plain English, with its next runs“When does 0 3 * * 1-5 run?”
compare_jsonLists the real differences between two JSON documents“What changed between these two responses?”
get_test_dataRealistic products, posts and todos from the free API“Give me 5 sample products as test fixtures”

Good to know