Fake Stack Trace
The Fake Stack Trace API generates a complete, language-correct stack trace for any of five languages. Real-looking error messages, real-looking file paths, real-looking line numbers — none of it real. Includes thread, timestamp, and a "next question" to ask yourself.
Add to Your MCP Client
Drop this server into Claude Desktop, Cursor, Continue, or any MCP-compatible client.
{
"mcpServers": {
"fake-stack-trace": {
"url": "https://api.stupidmcps.com/fake-stack-trace/mcp"
}
}
}
{
"mcpServers": {
"fake-stack-trace": {
"url": "https://api.stupidmcps.com/fake-stack-trace/mcp"
}
}
}
POST https://api.stupidmcps.com/fake-stack-trace/mcp
Add the snippet to your client's MCP config (typically claude_desktop_config.json for Claude Desktop, ~/.cursor/mcp.json for Cursor). Restart the client. The tools become available to your AI assistant.
No-code option: connect via Pipeworx — one click into Claude, ChatGPT, and friends.
Or Try It Directly — No MCP Client Required
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
language |
string |
Optional | javascript |
Target language. |
Examples
curl "https://api.stupidapis.com/fake-stack-trace/generate?language=python"
import requests
response = requests.get(
"https://api.stupidapis.com/fake-stack-trace/generate",
params={"language": "python"}
)
print(response.json())
const response = await fetch( "https://api.stupidapis.com/fake-stack-trace/generate?language=python" ); const data = await response.json(); console.log(data);
Response Schema
| Field | Type | Description |
|---|---|---|
language |
string |
Echoed back |
error_message |
string |
The error |
stack |
string[] |
Stack frames |
thread |
string |
Thread/goroutine name |
occurred_at |
string |
ISO timestamp |
next_question |
string |
What to ask yourself |
Example Response
{
"language": "python",
"error_message": "AttributeError: 'NoneType' object has no attribute 'split'",
"stack": [
" File \"app/main.py\", line 142, in handle",
" File \"lib/processor.py\", line 87, in process",
" File \"utils/serializer.py\", line 33, in serialize"
],
"thread": "main",
"occurred_at": "2026-06-15T03: 14: 22.000Z",
"next_question": "is there a null somewhere upstream"
}
MCP Access
This API is available as an MCP tool for AI assistants. Connect your agent to:
POST https://api.stupidmcps.com/fake-stack-trace/mcp
POST https://api.stupidmcps.com/mcp
Use Pipeworx to connect this MCP tool to Claude, ChatGPT, and other AI assistants with no code.