# smart-context MCP server

> Reduces AI agent token usage by up to 90% through intelligent context compression and task checkpoint persistence.

- Repository: https://github.com/Arrayo/smart-context-mcp
- Page: https://hostedmcp.org/servers/arrayo/smart-context-mcp
- Transport: stdio
- Stars: 4
- License: MIT
- Latest version: 1.21.0

## Install

### Claude Code

```sh
claude mcp add smart-context-mcp -- npx -y smart-context-mcp
```

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

```json
{
  "mcpServers": {
    "smart-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "smart-context-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "smart-context-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "smart-context-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "smart-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "smart-context-mcp"
      ]
    }
  }
}
```

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

```toml
[mcp_servers.smart-context-mcp]
command = "npx"
args = ["-y", "smart-context-mcp"]
```

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

```json
{
  "mcpServers": {
    "smart-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "smart-context-mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `DEVCTX_CACHE_WARMING` | no | no |  |
| `DEVCTX_DETECT_MISSED` | no | no |  |
| `DEVCTX_EXPLAIN` | no | no |  |
| `DEVCTX_PROJECT_ROOT` | no | no |  |
| `DEVCTX_SHELL_DISABLED` | no | no |  |
| `DEVCTX_SHOW_USAGE` | no | no |  |
| `DEVCTX_WARM_FILES` | no | no |  |
| `DEVCTX_WORKFLOW_TRACKING` | no | no |  |

## FAQ

### How much can this server reduce token usage?

It can reduce AI agent token usage by up to 90% through intelligent context compression.

### What are the main tools provided by this server?

The server provides specialized tools including smart_read, smart_search, smart_shell, smart_code, and smart_output.

### Does the server support semantic code navigation?

Yes, the smart_code tool provides semantic code navigation for JS/TS via the TypeScript LanguageService, allowing resolution by symbol name.
