Skip to content
MCP server

Astria

Local knowledge graph of your codebase, queryable by CLI or MCP with no API keys

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
1.6.0
Listing updated
3 days ago

About Astria

Astria is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

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.

Install

Run in a terminal

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

Add to claude_desktop_config.json

{
  "mcpServers": {
    "astria": {
      "command": "npx",
      "args": [
        "-y",
        "@nodesify/astria"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "astria": {
      "command": "npx",
      "args": [
        "-y",
        "@nodesify/astria"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

What it does

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

Pricing

Open source

Free and open source; no API key required

Prices change. Check nodesify.github.io before you buy.

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 to Astria

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools