# Mockanything

> Mockanything is a free MCP server for developer tools. Local stateful twins of public APIs for testing apps and agents without keys. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, API
- **Website:** https://shipatmidnight.dev/mockanything
- **Repository:** https://github.com/shreyassaw5394/mockanything
- **MCP Registry name:** io.github.shreyassaw5394/mockanything
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

Mockanything starts by pointing at an API, not at a database. Run `npx @shipatmidnight/mockanything stripe` and a Stripe-shaped server appears on localhost:4010, keeping state between calls so a created customer can be read back and a refund changes the remaining balance.

Seven packs are hand-tuned: Stripe, Paystack, Twilio, Resend, GitHub, OpenAI and Anthropic. For anything else it reads an OpenAPI 3 or Swagger 2 file, a URL, a HAR recording or just an API name from the public APIs.guru directory, and builds the twin itself. The OpenAI and Anthropic twins return canned replies that start with [mock]; no model runs.

A chaos mode adds timeouts, 5xx errors, 429s with Retry-After, and duplicate or out-of-order webhooks, seeded so a failure can be replayed. Each twin also opens a local dashboard showing requests, webhook deliveries and stored state.

## Features

- **Stateful twins:** Created objects persist, so later reads, refunds and deletes behave like the real provider.
- **Signed webhooks:** Sends webhooks signed the way the provider signs them so verification code runs unchanged.
- **Chaos mode:** Injects timeouts, server errors, rate limits and duplicate or reordered webhooks with a repeatable seed.
- **Any OpenAPI spec:** Builds a twin from an OpenAPI or Swagger file, a URL or a HAR recording.
- **Local dashboard:** Shows every request, webhook delivery and stored object for each twin.

## Good for

- Test a checkout flow against a Stripe twin including declined cards
- Let a coding agent exercise SMS or email code without sending real messages
- Check that webhook handlers cope with duplicate and out-of-order events
- Prototype against an API you have only a spec for

## Install

### Claude Code (Terminal)

```sh
claude mcp add mockanything -- npx -y @shipatmidnight/mockanything
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mockanything": {
      "command": "npx",
      "args": [
        "-y",
        "@shipatmidnight/mockanything"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mockanything": {
      "command": "npx",
      "args": [
        "-y",
        "@shipatmidnight/mockanything"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mockanything": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@shipatmidnight/mockanything"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mockanything": {
      "command": "npx",
      "args": [
        "-y",
        "@shipatmidnight/mockanything"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mockanything": {
      "command": "npx",
      "args": [
        "-y",
        "@shipatmidnight/mockanything"
      ]
    }
  }
}
```

## Tools

- `twin_from_docs`: Lets an agent build a twin of an API from its documentation URL.

## FAQ

### Does it need API keys or accounts?

No. The README says there are no keys, no sandbox sign-up and no bill, and calls never reach the real provider.

### How do I add it to an MCP client?

Use the command npx with the arguments -y @shipatmidnight/mockanything mcp.

### Can an agent build a twin from documentation?

Yes, through the twin_from_docs tool, which takes a docs URL.

### Which APIs have hand-tuned packs?

Stripe, Paystack, Twilio, Resend, GitHub, OpenAI and Anthropic.

### Is Mockanything free?

Yes. Mockanything is free to use.

### How do I add Mockanything to Claude Code?

Run this command in your terminal: claude mcp add mockanything -- npx -y @shipatmidnight/mockanything

### What are the best alternatives to Mockanything?

The closest alternatives to Mockanything are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mockanything
