Mockanything
Local stateful twins of public APIs for testing apps and agents without keys
- Pricing
- Free
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 0.2.2
- Listing updated
- 3 days ago
About Mockanything
Mockanything is a free MCP server for developer tools. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add mockanything -- npx -y @shipatmidnight/mockanythingAdd to claude_desktop_config.json
{
"mcpServers": {
"mockanything": {
"command": "npx",
"args": [
"-y",
"@shipatmidnight/mockanything"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mockanything": {
"command": "npx",
"args": [
"-y",
"@shipatmidnight/mockanything"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mockanything": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@shipatmidnight/mockanything"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mockanything": {
"command": "npx",
"args": [
"-y",
"@shipatmidnight/mockanything"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mockanything": {
"command": "npx",
"args": [
"-y",
"@shipatmidnight/mockanything"
]
}
}
}Tools this server provides (1)
Taken from the project documentation; the running server may differ.
- twin_from_docs
- Lets an agent build a twin of an API from its documentation URL.
What it does
- 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
Pricing
Free
No keys or bill; licence not published
Prices change. Check shipatmidnight.dev before you buy.
Mockanything 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 to Mockanything

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools