Skip to main content

PRD Generator MCP Server

The PRD Generator MCP server (ainative-prd-mcp) provides 18 tools for creating, validating, and managing Product Requirement Documents. It has built-in knowledge of all 22 AINative products and 1,968 API endpoints.

npm i ainative-prd-mcp
AINative Account Required

Full functionality (AI generation, PRD persistence, semantic search) requires a ZeroDB API key. Template rendering, validation, and platform discovery work without an account. The server auto-provisions a free instance on first run if no credentials are found.

Quick Start

npx ainative-prd-mcp

On first run without credentials, the server:

  1. Provisions a free ZeroDB instance (~800ms)
  2. Saves credentials to .mcp.json and .env
  3. Prints a claim URL to take permanent ownership

Setup

Claude Code / Cursor / Windsurf

{
"mcpServers": {
"prd-generator": {
"command": "npx",
"args": ["-y", "ainative-prd-mcp"],
"env": {
"ZERODB_API_KEY": "ak_your_key",
"ZERODB_API_URL": "https://api.ainative.studio"
}
}
}
}

Remote MCP (HTTP Transport)

{
"mcpServers": {
"prd-generator": {
"url": "https://mcp.ainative.studio/prd-generator",
"headers": {
"Authorization": "Bearer your-api-key"
}
}
}
}

Auto-Provisioning (No API Key)

{
"mcpServers": {
"prd-generator": {
"command": "npx",
"args": ["-y", "ainative-prd-mcp"]
}
}
}

Tools Reference

Generation Tools (4)

prd_generate

Generate a full PRD with AI and AINative platform context. Auto-detects relevant services and saves to ZeroDB.

Parameters:

NameTypeRequiredDescription
product_namestringyesName of the product or feature
descriptionstringyesWhat needs to be built
target_audiencestringyesWho will use it
core_featuresstring[]yesList of core features
constraintsstring[]noTechnical or business constraints
templatestringnoTemplate: standard, ainative-feature, agent-capability
issue_numberintegernoGitHub issue to link
ainative_servicesstring[]noAINative services to use (auto-detected if omitted)
additional_contextstringnoExtra context or requirements

Example:

{
"product_name": "Agent Webhooks",
"description": "Webhook notifications for agent lifecycle events",
"target_audience": "Developers using Agent Cloud",
"core_features": ["Registration", "Event filtering", "Retry logic"],
"template": "ainative-feature",
"ainative_services": ["Agent Cloud", "ZeroDB"]
}

prd_generate_section

Generate or regenerate a single section without touching the rest of the PRD.

Parameters:

NameTypeRequiredDescription
section_namestringyesSection to generate (e.g., technical_architecture, user_stories)
prd_idstringnoExisting PRD ID for context
contextstringnoAdditional context for this section

prd_refine

Refine an existing PRD based on feedback. Version history tracked automatically.

Parameters:

NameTypeRequiredDescription
prd_idstringyesSaved PRD ID
feedbackstringyesWhat needs to change
sections_to_updatestring[]noLimit to specific sections

prd_from_issue

Generate a PRD from a GitHub issue number.

Parameters:

NameTypeRequiredDescription
issue_numberintegeryesGitHub issue number
repostringnoRepository (default: AINative-Studio/core)
templatestringnoTemplate to use (default: ainative-feature)

Template Tools (4)

prd_list_templates

List built-in and custom templates.

prd_get_template

Get a template by name with placeholder variables.

NameTypeRequiredDescription
namestringyesTemplate name

prd_create_template

Create a custom template stored persistently in ZeroDB.

NameTypeRequiredDescription
namestringyesTemplate name
descriptionstringyesWhat it's for
contentstringyesMarkdown with {{PLACEHOLDER}} variables

prd_render_template

Render a template with variable substitution (no AI, deterministic).

NameTypeRequiredDescription
template_namestringyesTemplate to render
variablesobjectyesKey-value pairs for substitution

Validation Tools (3)

prd_validate

Validate against 15 quality rules and AINative architecture constraints.

NameTypeRequiredDescription
contentstringconditionalPRD markdown (or use prd_id)
prd_idstringconditionalSaved PRD to validate
strictbooleannoInclude AINative-specific rules (default: true)

Rules include:

  • Structure: title, introduction, features, acceptance criteria, timeline
  • Content: problem statement, user stories, test plan, security
  • AINative: correct API paths, ZeroDB usage, no third-party memory (Supabase/Firebase rejected)

prd_score

Score completeness 0-100 with letter grade.

NameTypeRequiredDescription
contentstringconditionalPRD markdown
prd_idstringconditionalSaved PRD ID

Returns: { score: 85, grade: "B", breakdown: { ... } }


prd_check_api_refs

Verify all API endpoint and service references actually exist in the AINative platform.

NameTypeRequiredDescription
contentstringconditionalPRD markdown
prd_idstringconditionalSaved PRD ID

Memory Tools — ZeroDB-Powered (4)

prd_save

Save a PRD as a persistent ZeroDB plan artifact with automatic version tracking.

NameTypeRequiredDescription
titlestringyesPRD title
contentstringyesFull PRD markdown
tagsstring[]noTags for categorization

Returns: { prd_id: "uuid", saved: true }


prd_load

Load a saved PRD by ID. Use at session start to resume work.

NameTypeRequiredDescription
prd_idstringyesArtifact ID from prd_save

Semantic search across all saved PRDs. Find by topic, not just keywords.

NameTypeRequiredDescription
querystringyesNatural language query
limitintegernoMax results (default 10)
tagsstring[]noFilter by tags

prd_history

Get version history showing how a PRD evolved over time (unified diffs).

NameTypeRequiredDescription
prd_idstringyesArtifact ID

Platform Discovery Tools (3)

prd_list_services

List all 22 AINative products with descriptions, API prefixes, SDKs, and pricing.

NameTypeRequiredDescription
categorystringnoFilter by category
verbosebooleannoInclude features, SDKs, endpoints

prd_get_api_catalog

Get API details for a specific AINative service.

NameTypeRequiredDescription
servicestringyesService name (e.g., "ZeroDB", "Agent Cloud")

prd_suggest_stack

Given requirements, suggest which AINative services to use.

NameTypeRequiredDescription
requirementsstringyesWhat you need to build
featuresstring[]noRequired features
constraintsstring[]noTechnical constraints

Authentication

MethodConfigNotes
API KeyZERODB_API_KEY=ak_...Recommended. Get one: npx zerodb-cli init
Username/PasswordZERODB_USERNAME + ZERODB_PASSWORDAuto-refreshes JWT
Auto-provisionNo config neededFree instance on first run

Source Code