# Astria MCP server

> Converts codebases into a queryable SQLite knowledge graph to help AI agents inspect relationships and assess code changes.

- Repository: https://github.com/Nodesify/astria
- Page: https://hostedmcp.org/servers/nodesify/astria
- Transport: stdio
- Stars: 3
- License: MIT
- Latest version: 1.6.0

## Install

### Claude Code

```sh
claude mcp add astria -- npx -y @nodesify/astria
```

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

```json
{
  "mcpServers": {
    "astria": {
      "command": "npx",
      "args": [
        "-y",
        "@nodesify/astria"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "astria": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nodesify/astria"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"astria","type":"stdio","command":"npx","args":["-y","@nodesify/astria"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "astria": {
      "command": "npx",
      "args": [
        "-y",
        "@nodesify/astria"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add astria -- npx -y @nodesify/astria
```

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

```toml
[mcp_servers.astria]
command = "npx"
args = ["-y", "@nodesify/astria"]
```

### Gemini CLI

```sh
gemini mcp add -s user astria npx -- -y @nodesify/astria
```

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

```json
{
  "mcpServers": {
    "astria": {
      "command": "npx",
      "args": [
        "-y",
        "@nodesify/astria"
      ]
    }
  }
}
```

## FAQ

### Does Astria require an API key for structural analysis?

No, structural analysis is performed locally and requires no API key.

### How do I exclude specific files from the graph?

You can exclude files using .astriaignore, which follows gitignore syntax.

### What are the system requirements for installation?

Node.js version 22 or higher is required.
