# NHI-as-Code Zero-Secret NHI Governance MCP Server

> NHI-as-Code Zero-Secret NHI Governance MCP Server is a freemium MCP server for security. Finds static CI keys and unpinned GitHub Actions, then proposes OIDC migrations. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $249 a month
- **Platforms:** CLI, API, Linux, macOS, Windows, Self-hosted
- **Website:** https://nhiascode.dev
- **Repository:** https://github.com/theperipetycompany/nhi-as-code/tree/HEAD/packages/mcp
- **MCP Registry name:** dev.nhiascode/mcp-server
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-28

## About

Scans a repository locally for long-lived AWS keys, stale GitHub tokens and GitHub Actions that are not pinned to a commit SHA. Discovery runs inside your own machine or CI runner, and only metadata and salted fingerprints are ever sent to the hosted service, which also rejects raw credentials with an HTTP 422 response.

For each finding it can generate remediation output: AWS IAM trust policies that match the audience and repository-plus-branch or environment subject exactly, GitHub Actions snippets pinned to 40-character SHAs, and GitHub App token migrations. Compliance bundles for SOC 2 and ISO 27001 controls are canonicalized and signed with Ed25519 so they can be checked offline against a published key set.

The project is aimed at platform and security teams that want to retire static machine credentials and show auditors evidence of it. The core CLI, GitHub Action and MCP server are free and dependency-free; continuous monitoring, automated pull requests and signed bundles are on paid plans.

## Features

- **Local workflow scanning:** Checks GitHub Actions workflows and repository files for static keys and unpinned actions without sending secrets off the machine.
- **Raw-secret rejection:** The hosted ingestion endpoints refuse payloads containing recognizable AWS, GitHub, Stripe, OpenAI, Anthropic, Cloudflare or PEM credentials.
- **OIDC migration output:** Generates AWS trust policies with exact audience and subject conditions in place of wildcards.
- **SHA-pinned action snippets:** Produces workflow snippets that reference third-party actions by full commit SHA.
- **Signed compliance evidence:** Builds SOC 2 and ISO 27001 evidence bundles signed with Ed25519 and verifiable against a public JWKS endpoint.
- **SARIF output for code scanning:** Exports findings as SARIF 2.1.0 for upload to GitHub Code Scanning.

## Good for

- Find long-lived AWS access keys in CI workflows before an audit
- Replace stored GitHub PATs with OIDC or GitHub App tokens
- Pin third-party GitHub Actions to commit SHAs in pull requests
- Offboard non-human identities with a documented playbook
- Attach signed identity-governance evidence to a SOC 2 or ISO 27001 review

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server -- npx -y @nhiascode/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server -- npx -y @nhiascode/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@nhiascode/mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-server npx -- -y @nhiascode/mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhiascode/mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `nhi_scan_workflow`: Scans a GitHub Actions workflow for static keys and unpinned actions.
- `nhi_generate_oidc_migration`: Generates an OIDC migration for AWS trust policies.
- `nhi_generate_app_token_migration`: Generates a GitHub App token migration.
- `nhi_verify_evidence`: Verifies a signed evidence bundle.
- `nhi_offboarding_playbook`: Produces an offboarding playbook for a non-human identity.

## FAQ

### Does NHI-as-Code Zero-Secret NHI Governance MCP Server send my secrets to the service?

Discovery runs locally. Only metadata and salted HMAC-SHA256 fingerprints are uploaded, and the server rejects raw credentials with HTTP 422.

### Is there a free plan?

Yes. The local CLI and GitHub Action are free, covering one repository and 25 monitored non-human identities with SARIF output and a public trust badge.

### Which tools does the MCP server expose?

nhi_scan_workflow, nhi_generate_oidc_migration, nhi_generate_app_token_migration, nhi_verify_evidence and nhi_offboarding_playbook.

### What does the Team plan cost?

The Team plan is listed at $249 per month for 15 repositories, 250 monitored identities and 25 automated OIDC or App pull requests per month.

### How do I add NHI-as-Code Zero-Secret NHI Governance MCP Server to Claude Code?

Run this command in your terminal: claude mcp add mcp-server -- npx -y @nhiascode/mcp-server

### What are the best alternatives to NHI-as-Code Zero-Secret NHI Governance MCP Server?

The closest alternatives to NHI-as-Code Zero-Secret NHI Governance MCP Server are Ci Guard MCP, Secret Scanner, Secrets Leak Audit, GitHub Actions Audit and Secret Scan.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Ci Guard MCP](https://ai-powered.com/mcp/ci-guard-mcp): Ci Guard MCP is an open-source MCP server for developer tools.
- [Secret Scanner](https://ai-powered.com/mcp/secret-scanner): Secret Scanner is an open-source MCP server for security.
- [Secrets Leak Audit](https://ai-powered.com/mcp/secrets-leak-audit): Secrets Leak Audit is a freemium MCP server for security.
- [GitHub Actions Audit](https://ai-powered.com/mcp/github-actions-audit): GitHub Actions Audit is a paid MCP server for developer tools.
- [Secret Scan](https://ai-powered.com/mcp/secret-scan): Secret Scan is an open-source MCP server for security.
- [Ci Sentinel](https://ai-powered.com/mcp/ci-sentinel): Ci Sentinel is a freemium MCP server for security.
- [GHAGuard — GitHub Actions Supply-Chain Security Auditor](https://ai-powered.com/mcp/ghaguard-github-actions-supply-chain-security-auditor): GHAGuard — GitHub Actions Supply-Chain Security Auditor is an open-source MCP server for security.
- [Repo Security Scanner — Malicious Code & Supply Chain](https://ai-powered.com/mcp/repo-security-scanner-malicious-code-and-supply-chain): Repo Security Scanner — Malicious Code & Supply Chain is a paid MCP server for security.

---
Source: https://ai-powered.com/mcp/nhi-as-code-zero-secret-nhi-governance-mcp-server
