# Sphior Code MCP

> Sphior Code MCP is a freemium MCP server for security. Local deterministic security scan of your workspace with fix guidance for your AI agent. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $79 a month
- **Platforms:** CLI, self-hosted
- **Website:** https://sphior.com/code
- **Repository:** https://github.com/toraastrta/sphior-code/tree/HEAD/packages/code-mcp
- **MCP Registry name:** io.github.Toraastrta/sphior-code-mcp
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-14

## About

The engine behind this package is rule-based rather than model-based: it scans the workspace in local mode with no account and hands findings, plus how to fix them, to the assistant. Tools named in the README include get_fix_context and health_check.

Adding a SPHIOR_API_KEY extends it to repositories connected to SPHIOR on GitHub, with scan history and verifiable records. Optional variables set the directory to scan, the API base for self-hosted or regional deployments and a timeout between 1 and 300 seconds.

The wider SPHIOR CODE product scans pull requests through a GitHub App for SQL injection, cross-site scripting, hard-coded secrets and vulnerable dependencies, and says analysis happens in memory with source never stored. Its code scanning plan starts at $79 a month.

## Features

- **Local scanning:** Scans your workspace with a bundled deterministic engine.
- **Fix guidance:** get_fix_context returns what an agent needs to repair a finding.
- **No account to start:** Works without an API key.
- **Connected repositories:** With a key, reach GitHub repos with history and scan records.
- **Configurable:** Set workspace, API base and timeout through environment variables.

## Good for

- Check code for injection or hard-coded secrets before committing
- Ask an agent to fix a finding using given context
- Review a connected repository's scan history
- Verify the scanner is reachable with a health check

## Install

### Claude Code (Terminal)

```sh
claude mcp add sphior-code-mcp --env SPHIOR_API_KEY='<SPHIOR_API_KEY>' -- npx -y sphior-code-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sphior-code-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sphior-code-mcp"
      ],
      "env": {
        "SPHIOR_API_KEY": "<SPHIOR_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sphior-code-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sphior-code-mcp"
      ],
      "env": {
        "SPHIOR_API_KEY": "<SPHIOR_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "sphior-code-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sphior-code-mcp"
      ],
      "env": {
        "SPHIOR_API_KEY": "<SPHIOR_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sphior-code-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sphior-code-mcp"
      ],
      "env": {
        "SPHIOR_API_KEY": "<SPHIOR_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sphior-code-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sphior-code-mcp"
      ],
      "env": {
        "SPHIOR_API_KEY": "<SPHIOR_API_KEY>"
      }
    }
  }
}
```

## Tools

- `get_fix_context`: Returns fix guidance for a finding.
- `health_check`: Checks the server and connection.

## FAQ

### Do I need an account?

No; without a key it runs in local mode.

### What does an API key add?

Access to repositories connected on GitHub, with history and verifiable scan records.

### Does it use AI to find issues?

The product describes its engine as deterministic, with no AI.

### Is Sphior Code MCP free?

Sphior Code MCP has a free plan, with paid plans for more usage or features. Paid plans start at $79 a month.

### How do I add Sphior Code MCP to Claude Code?

Run this command in your terminal: claude mcp add sphior-code-mcp --env SPHIOR_API_KEY='<SPHIOR_API_KEY>' -- npx -y sphior-code-mcp

### What are the best alternatives to Sphior Code MCP?

The closest alternatives to Sphior Code MCP 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/sphior-code-mcp
