MCP Integration
The Model Context Protocol (MCP) connects your IDE to your DYPAI backend. Your AI agent gets 20+ tools to create tables, endpoints, auth, storage, and more β all from natural language.
Supported IDEs
Works with any MCP-compatible tool:
| IDE | Config file | Type |
|---|---|---|
| Claude Code | .mcp.json in project root | Per-project |
| Cursor | .cursor/mcp.json | Per-project |
| Codex | .codex/config.toml | Per-project |
| Kiro | .kiro/settings/mcp.json | Per-project |
| Roo Code | .roo/mcp.json | Per-project |
| Windsurf | Global settings | Global |
| Cline | Global settings | Global |
Connect in 2 minutes
Open the MCP dialog
Click the MCP button in your project dashboard header.
Copy and paste
Copy the JSON config and paste it into your IDE's MCP config file:
{
"mcpServers": {
"dypai": {
"type": "http",
"url": "https://mcp.dypai.dev/mcp",
"headers": {
"Authorization": "Bearer dypai_mcp_YOUR_TOKEN"
}
}
}
}
Verify
Ask your AI: "What tables are in my project?" β if it responds with your tables, you're connected.
Install with CLI
You can configure MCP without copying JSON manually. On a machine with Node.js installed, run:
npx @dypai-ai/install
The installer lets you pick your IDE (Cursor, Claude Code, Windsurf, and others) and can open a browser to sign in and fetch a token if you do not pass one. Non-interactive example:
npx @dypai-ai/install --client cursor --token dypai_mcp_YOUR_TOKEN
Run npx @dypai-ai/install --help for all options.
Starter templates
Download a template from the Frontend tab β it comes with the MCP config pre-configured for your IDE.
What can the AI do?
Once connected, just describe what you need:
- "Create a users table with email, name, and role"
- "Build a POST endpoint that saves orders and sends an email"
- "Set up Google OAuth"
- "Add a Stripe payment node to the checkout workflow"
- "Show me the version history of the orders endpoint"
- "Rollback the checkout endpoint to yesterday's version"
Security
| Feature | Detail |
|---|---|
| Scoped tokens | Each token is scoped to one project. The AI only sees that project |
| Audit log | Every MCP action is logged with timestamp and details |
| Revocable | Regenerate or revoke tokens anytime from the dashboard |
| Encrypted | Tokens are encrypted at rest in the database |