Skip to content

AI Schema Co-Pilot

While StatelyDB’s schema language is easy to use if you already know what you want, it can be helpful to have assistance when deciding how to model a problem in schema. Fortunately, agentic AI assistants like Claude Code and Cursor exist that can help you build and iterate on schema.

StatelyDB provides a couple of additional tools to make sure your AI copilot of choice can be most effective.

@stately-cloud/statelydb-mcp-server adds tools that your AI copilot can call in order to validate and publish schema on your behalf. First, make sure you’ve already installed the Stately CLI and NodeJS.

Then add the MCP server to your assistant’s configuration. For example, Claude stores its configs in ~/Library/Application Support/Claude/claude_desktop_config.json on macOS. Your tool might work slightly differently.

{
"mcpServers": {
"statelydb": {
"command": "npx",
"args": ["-y", "@stately-cloud/statelydb-mcp-server"]
}
}
}

Now, you can tell your assistant to do things like “Design an StatelyDB elastic schema for a book store”.

There is also a text version of all of our documentation available at https://docs.stately.cloud/llms-full.txt. If you provide this as context, your assistant will do a much better job of writing StatelyDB schemas and helping you with developing on StatelyDB.