# Sem

> Sem is an open-source MCP server for developer tools. Entity-level code diffs, impact analysis and blame for coding agents. 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://ataraxy-labs.com
- **Repository:** https://github.com/ataraxy-labs/sem
- **MCP Registry name:** io.github.Ataraxy-Labs/sem
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "sem": {
      "command": "npx",
      "args": [
        "-y",
        "@ataraxy-labs/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

- [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.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/sem
