# Agent-Native Chat MCP server

> Lets an AI agent run shared actions and chat with users in a chat-first app with durable threads.

- Repository: https://github.com/BuilderIO/agent-native
- Page: https://hostedmcp.org/servers/builderio/agent-native-chat
- Official: yes
- Transport: remote
- Stars: 7696
- License: MIT
- Latest version: 1.0.0

## Install

### Claude Code

```sh
claude mcp add --transport http agent-native-chat https://starter.agent-native.com/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "agent-native-chat": {
      "url": "https://starter.agent-native.com/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "agent-native-chat": {
      "type": "http",
      "url": "https://starter.agent-native.com/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"agent-native-chat","type":"http","url":"https://starter.agent-native.com/mcp"}'
```

### Codex

```sh
codex mcp add agent-native-chat --url https://starter.agent-native.com/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.agent-native-chat]
url = "https://starter.agent-native.com/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http agent-native-chat https://starter.agent-native.com/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "agent-native-chat": {
      "url": "https://starter.agent-native.com/mcp",
      "type": "http"
    }
  }
}
```

## FAQ

### How do I create an Agent-Native chat app?

Run the create command with the chat template to scaffold a standalone project.

### How does an action work for both the agent and the UI?

Define an action once with defineAction, and the agent receives it as a tool while React calls the same function.

### What database does Agent-Native use?

It uses PostgreSQL in production and PGlite for local development.
