# DNA

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: dna-codes
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dna-codes/skills/tree/HEAD/mcp-registry
- Updated: 2026-11-06
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/dna

## What it 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.

## Requirements
- Remote server: `https://agents.dna.codes/o/{org}/mcp`

## Install

### Claude Code (native platform)

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http mcp-registry https://agents.dna.codes/o/{org}/mcp
```

### Codex

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
codex mcp add mcp-registry --url https://agents.dna.codes/o/{org}/mcp
```

### Cursor

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-registry": {
            "url": "https://agents.dna.codes/o/{org}/mcp"
        }
    }
}
```

### GitHub Copilot

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-registry": {
            "type": "http",
            "url": "https://agents.dna.codes/o/{org}/mcp"
        }
    }
}
```

### Gemini CLI

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp-registry https://agents.dna.codes/o/{org}/mcp
```

## When to use it
- 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
- 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.

## Similar
- [design-dna](https://affpapa.org/en/nevibecode/skills/design-dna.md) — skill · 7600 installs
- [ads-dna](https://affpapa.org/en/nevibecode/skills/ads-dna.md) — skill · 4100 installs
- [musical-dna](https://affpapa.org/en/nevibecode/skills/musical-dna.md) — skill · 581 installs
- [dna-extraction](https://affpapa.org/en/nevibecode/skills/dna-extraction.md) — skill · 425 installs
- [Hashgrid DNA (local)](https://affpapa.org/en/nevibecode/mcp/hashgrid-dna-local.md) — MCP server · ★ 4 repo stars
- [voice-dna-creator](https://affpapa.org/en/nevibecode/skills/voice-dna-creator.md) — skill · 7 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
