DNA — Claude Code MCP server: features and setup
DNA — an MCP server for Claude Code gives agents access to business rules and a domain model. Agents can query entities, transitions, and validation rules rather than infer them.
MIT updated 2026-11-06
Open on GitHubWhat DNA does
DNA exposes tools for reading and changing business rules and a domain model. Agents can describe, validate, and apply rules, then retrieve records, lists, or diffs. The shipped tools include describe, validate, apply, get, list, and diff.
The server accepts remote connections at https://agents.dna.codes/o/{org}/mcp. Register or initialize the organization with npx @dna-codes/cli register, then connect using a bearer token. Only a person in a claimed organization can use set-egress-allowlist. After behaviour DNA is applied, tools/list also returns business tools derived from its Actions; the set depends on the applied DNA.
What it helps with
- retrieve a domain entity’s definition
- validate business rules before applying them
- apply model changes and inspect the resulting diff
- query business tools derived from applied DNA
Example prompts for the agent
- Describe the entities and transitions in this domain.
- Validate these business rules and show any errors.
- Apply the model changes and list the available business tools.
How to install DNA
1Template address
The server address is a template: replace {…} or […] with your own values
2Platform CLI: remote server
claude mcp add --transport http mcp-registry https://agents.dna.codes/o/{org}/mcp1Template address
The server address is a template: replace {…} or […] with your own values
2Platform CLI: remote server
codex mcp add mcp-registry --url https://agents.dna.codes/o/{org}/mcp1Template address
The server address is a template: replace {…} or […] with your own values
2Config file
{
"mcpServers": {
"mcp-registry": {
"url": "https://agents.dna.codes/o/{org}/mcp"
}
}
}1Template address
The server address is a template: replace {…} or […] with your own values
2Config file
{
"servers": {
"mcp-registry": {
"type": "http",
"url": "https://agents.dna.codes/o/{org}/mcp"
}
}
}1Template address
The server address is a template: replace {…} or […] with your own values
2Platform CLI: remote server
gemini mcp add -t http mcp-registry https://agents.dna.codes/o/{org}/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about DNA
How do I install DNA in Claude Code?
Register or initialize the organization first with npx @dna-codes/cli register. Then add the MCP server with claude mcp add --transport http mcp-registry https://agents.dna.codes/o/{org}/mcp.
What does DNA do?
DNA gives agents tools to work with business rules and a domain model, including describing, validating, and applying changes, as well as retrieving data.
What does DNA require to work?
It requires a registered or initialized organization and a bearer token to connect to the remote MCP server.