# Astria

> Astria is an open-source MCP server for developer tools. Local knowledge graph of your codebase, queryable by CLI or MCP with no API keys. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Website:** https://nodesify.github.io/astria/
- **Repository:** https://github.com/nodesify/astria
- **MCP Registry name:** io.github.Nodesify/astria
- **Categories:** developer tools, knowledge and memory
- **Listing updated:** 2026-11-14

## About

Extraction is deterministic: tree-sitter grammars in a Rust core build a SQLite graph where each node points to a file and line, and each edge carries provenance labeled EXTRACTED, INFERRED or AMBIGUOUS with a confidence score. Structural analysis needs no API key. Optional local embeddings add similarity edges and semantic recall, and remote enrichment is optional too.

The CLI commands show how it is used: `astria run .` builds the graph, `astria query` finds where something is implemented, `explain` inspects a symbol, `path` follows relationships and `affected` assesses a proposed change. The README cautions that `affected` reports graph reachability, not runtime behavior, and that important results should be confirmed against the linked source. CLI and MCP queries use the same retrieval engine.

It installs from npm or Homebrew and needs Node.js 22 or newer. Intel Mac, musl Linux and Windows ARM builds omit local embeddings. Graphs can also be exported as a markdown wiki or an Obsidian vault.

## Features

- **Deterministic extraction:** Tree-sitter parsing, not regex guessing, anchored to file and line.
- **Evidence labels:** Edges are marked EXTRACTED, INFERRED or AMBIGUOUS with a score.
- **Change impact:** The affected command reports what a change can reach in the graph.
- **Offline by default:** No API keys, and everything stays on your machine.
- **Optional embeddings:** Local semantic search after a one-time model download.
- **Wiki and Obsidian export:** Regenerated on every update.

## Good for

- Find where authentication is implemented in an unfamiliar repo
- Check what a proposed change could affect before editing
- Give an agent a ranked repo map
- Browse a codebase as an Obsidian vault

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "astria": {
      "command": "npx",
      "args": [
        "-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"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### Does it need an API key?

No. Structural analysis needs none, and local embeddings are optional.

### What do I need installed?

Node.js 22 or newer; prebuilt native binaries ship with the package.

### Where is the graph stored?

Under a .astria folder in the project, as SQLite.

### Is the impact analysis reliable?

The README says it reports graph reachability and cannot prove runtime behavior.

### Is Astria free?

Yes. Astria is open source, so you can use and self-host it for free.

### How do I add Astria to Claude Code?

Run this command in your terminal: claude mcp add astria -- npx -y @nodesify/astria

### What are the best alternatives to Astria?

The closest alternatives to Astria are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/astria-2
