Skip to content
MCP server

Sem

Entity-level code diffs, impact analysis and blame for coding agents

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

About Sem

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

Sem reads code with tree-sitter and treats each function, class and method as an entity, so a diff says that a function was modified rather than that certain lines changed. It sits on top of Git and works in any repository with no setup.

The MCP server exposes this to agents, with semantic diff, impact analysis, blame and context. The README describes cloud-backed queries as opt-in per repository: logging in does not upload a repo or send a query, and there are preview, local audit log and forget controls.

Sem is part of the Ataraxy Labs stack, alongside weave for entity-level merges, inspect for semantic code review and opensessions, a tmux sidebar for coding agents. It installs from npm and runs over stdio.

Install

Run in a terminal

claude mcp add sem -- npx -y @ataraxy-labs/sem

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

{
  "servers": {
    "sem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ataraxy-labs/sem"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "sem": {
      "command": "npx",
      "args": [
        "-y",
        "@ataraxy-labs/sem"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "sem": {
      "command": "npx",
      "args": [
        "-y",
        "@ataraxy-labs/sem"
      ]
    }
  }
}

What it does

Entity-level diff
Shows which functions, methods and classes changed.
Impact analysis
Estimates what a change affects.
Entity blame
Attributes history at entity level.
Agent context
Provides code context for agents.
Opt-in cloud queries
Cloud queries need consent per repo, with an audit log.

Good for

  • Review what a commit changed by function
  • Check impact before refactoring
  • Give an agent concise change context
  • Merge with entity awareness using weave

Pricing

Open source

Prices change. Check ataraxy-labs.com before you buy.

Sem FAQ

Does it need setup?

No, it works in any Git repo.

Does it upload my code?

Not by default; cloud queries are opt-in per repo.

How is it installed?

From npm as @ataraxy-labs/sem.

What parses the code?

tree-sitter.

Is Sem free?

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

How do I add Sem to Claude Code?

Run this command in your terminal: claude mcp add sem -- npx -y @ataraxy-labs/sem

What are the best alternatives to Sem?

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

Alternatives to Sem

  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