# 24K Labs MCP Blueprint Generator

> 24K Labs MCP Blueprint Generator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $1.5/call, status unknown (last checked 2026-09-14).

Generates a Model Context Protocol (MCP) blueprint/architecture document for a given codebase or service description using AI

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/mcp-blueprint
- Price: $1.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-mcp-blueprint-generator-3a8b9b83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3jsugwtXa0RAYAAmBdF4Q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 24k-labs-mcp-blueprint-generator-3a8b9b83 -d '<json body>'
```

Example prompt: Generate an MCP blueprint for my PostgreSQL reader service — here's the core code: `async function queryDB(sql) { return pool.query(sql); }` — the language is JavaScript and I want it structured so AI agents can safely query read-only tables.

## When to prefer this

Choose this endpoint when you need an AI-generated MCP server architecture blueprint for a specific codebase or service — especially useful for developers wanting to expose existing code as MCP tools for AI agents. Prefer it over generic code documentation tools when the goal is specifically MCP protocol compliance and agent-tool integration design. Best suited for pay-per-request usage without API key management overhead.

## Known failure modes

- Missing or empty 'code' field returns an error or generic response
- Ambiguous context may produce a generic rather than tailored blueprint
- Unsupported programming language may yield lower-quality output
- Payment failure (insufficient USDC on Base L2) results in HTTP 402
- Large codebases may exceed token limits and produce truncated blueprints

## How this service works

Full Model Context Protocol server architecture design with implementation guide.

## Output

Returns a structured MCP blueprint document (Markdown) describing the architecture, tools, resources, and integration patterns for exposing the provided code or service as an MCP-compatible server, along with the model used and token count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "description": "Primary input content"
  },
  "context": {
   "type": "string",
   "description": "Optional context or instructions"
  },
  "language": {
   "type": "string",
   "description": "Programming language (code services)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "claude-opus-4-5",
  "result": "# MCP Blueprint: PostgreSQL Reader\n\n## Architecture...",
  "tokens_used": 1200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-mcp-blueprint-generator-3a8b9b83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
