Ajiro API logo

Ajiro API

Scans backend routes into YAML, runs regression tests, and serves mocks through an MCP interface for coding agents.

Install Ajiro API

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ajiro-api": {
      "command": "npx",
      "args": [
        "-y",
        "ajiro-api"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio ajiro-api -- npx -y ajiro-api

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y ajiro-api

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ajiro-api MCP server exposes local API route scanning and YAML-based regression testing to coding agents through stdio. It supports Next.js Route Handlers, Hono, FastAPI, Express, and Go net/http, chi, and Echo projects. Agents can inspect endpoints, validate definitions, run tests, and retrieve schemas while keeping API definitions and results on the developer’s machine. Reach for it when an agent needs to implement, verify, and re-test HTTP APIs without relying on a GUI client.

Use cases

  • Scan backend routes into version-controlled endpoint YAML
  • Run regression tests after an agent changes API handlers
  • Inspect endpoint definitions and validation failures
  • Serve defined mock responses to frontend or client developers

Key features

  • Route scanning for seven supported backend frameworks
  • YAML endpoint definitions with tests and mock scenarios
  • MCP tools for scanning, testing, listing, validation, and schemas
  • JSON and JUnit test output for agent workflows and CI
  • OpenAPI, Postman, and Bruno import support
  • Local mock server with configurable endpoint responses

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16h ago via OSV.dev · ajiro-api (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.7kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.

How Ajiro API works

What ajiro-api MCP server does

ajiro-api MCP server gives coding agents access to a local workflow for discovering backend routes, maintaining endpoint definitions, and checking API behavior. It statically analyzes supported backend projects and stores one YAML file per endpoint under an api/ directory. Each file separates route source information from request tests and mock responses, so scanning can update route metadata without replacing tests written by people or agents.

The MCP layer exposes the same project data and operations through the ajiro-api mcp command. This makes the scan, test, inspection, validation, and schema operations available to MCP clients working in the backend repository.

How it works

Run ajiro-api init in a backend project to create the main configuration file and endpoint directory. ajiro-api scan detects the framework, reads route declarations, and writes or updates endpoint YAML files. Tests are then executed against a running application with ajiro-api test.

Endpoint YAML can describe requests, expected status codes, body matches, JSON schemas, captured values, setup requests, shared headers, and mock scenarios. Empty test sections receive an implicit smoke check for safe read-oriented methods. POST, PUT, PATCH, and DELETE smoke requests require the unsafe-smoke option because they may modify data.

The MCP server is started over stdio with ajiro-api mcp. A typical client configuration invokes it through npx -y ajiro-api mcp, although the command can also use an installed binary. Test output can be emitted as JSON with failure details, expected and actual values, and handler locations; sensitive tokens and passwords are masked.

Setup and configuration

Install through npm, Homebrew, Cargo, or a binary from GitHub Releases. For a quick trial, run the package with npx -y ajiro-api. Automated environments can pin the npm package version or use a lockfile.

For Claude Code, the repository provides a plugin installation path that supplies the skill and MCP server. The server can also be added directly to an MCP settings file:

config.json
{
  "mcpServers": {
    "ajiro-api": { "command": "npx", "args": ["-y", "ajiro-api", "mcp"] }
  }
}

Start the application before running endpoint tests. If authentication is needed, configure a login request in an environment’s setup; captured cookies or tokens can then be included through environment headers.

Tools and capabilities

The MCP tool names are:

  • scan — discover routes and update endpoint definitions.
  • test — execute endpoint tests and report failures.
  • list — show defined endpoints.
  • validate — check YAML syntax, schema, references, duplicate IDs, and dependencies.
  • get_endpoint — retrieve an endpoint definition.
  • schema — return the JSON Schema for endpoint or configuration files.

The CLI also supports mock serving, OpenAPI 3.x import and export, Postman and Bruno imports, HTML API documentation generation, CI drift checks, and JUnit test reports. Mock responses are served from the mock: sections of endpoint files, with port 4010 as the documented default.

Limitations and notes

Route scanning supports Next.js Route Handlers, Hono, FastAPI, Express, Go net/http, Go chi, and Go Echo. GraphQL, gRPC, and WebSocket APIs are outside the supported scope. The runtime is delivered as a single Rust binary, so Node.js or Python is not required when using that binary.

The MCP transport described for this package is stdio. API definitions and test results are designed to remain local. Telemetry consent is off by default and can be managed with the CLI’s telemetry command. The project is MIT licensed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ajiro API

ajiro-api is an MCP server that connects coding agents to local backend routes and endpoint YAML files. Its main tools are scan, test, list, validate, get_endpoint, and schema, allowing agents to discover routes, run regression checks, inspect definitions, validate configuration, and retrieve JSON Schema without leaving the project.

Install it with npm, Homebrew, Cargo, or a GitHub Release binary, then configure an MCP client to run `npx -y ajiro-api mcp` over stdio. Claude Code can install the repository plugin or add the same command with `claude mcp add`.

ajiro-api supports Next.js Route Handlers, Hono, FastAPI, Express, Go net/http, Go chi, and Go Echo. It is intended for HTTP API routes; GraphQL, gRPC, and WebSocket APIs are outside its supported scope.

Start the application, create project files with `ajiro-api init`, scan routes with `ajiro-api scan`, and run `ajiro-api test`. Endpoint YAML files define requests and expectations, while `--json` provides failure details that an agent can use to correct and re-test the API.

Yes. ajiro-api exposes a standard stdio MCP server, so it can be configured in Cursor’s MCP settings with the command `npx -y ajiro-api mcp`. The repository also documents direct MCP configuration for clients rather than requiring the Claude Code plugin.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAjiro API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ajiro-api?style=directory)](https://allmcps.com/mcp/ajiro-api)
HTML Embed
<a href="https://allmcps.com/mcp/ajiro-api"><img src="https://allmcps.com/api/badge/ajiro-api?style=directory" alt="Ajiro API on AllMCPs" /></a>