Skip to content
← All MCP servers

Is the Harness MCP server safe? What it can reach

What the Harness MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Harness maintains an official server, harness/mcp-server, that runs locally with npx and a token, or as a Harness-hosted OAuth endpoint. Its 11 tools cover pipelines, flags, services and more. Set HARNESS_READ_ONLY to true to block creates, updates, deletes and executes. The token’s Harness RBAC is the other limit.

Who maintains it

ImplementationKindStatus
harness/mcp-server, npm harness-mcp-v2 (Harness)Officialactive

It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://mcp.harness.io/mcp.

How it signs in

Locally, a Harness personal access token or service account token in HARNESS_API_KEY. The hosted endpoint uses Harness OAuth and must be enabled for your account by Harness Support. Either way the server acts with that identity’s Harness permissions.

What its tools can do

KindTools
Readharness_describe, harness_schema, harness_list, harness_get, harness_search, harness_diagnose, harness_status
Writeharness_create, harness_update
Can’t be undoneharness_delete, harness_execute

Eleven tools route by a resource_type parameter to many resource types, so one tool can touch pipelines, flags, connectors or GitOps apps. harness_execute runs actions such as running or retrying a pipeline, toggling a flag or syncing an app.

Built-in limits

OptionWhat it does
HARNESS_READ_ONLYSet to true to block all mutating operations (create, update, delete, execute). Only list and get are allowed.
Elicitation promptsharness_create, harness_update, harness_delete and harness_execute ask the user to confirm before acting, unless a risk level is auto-approved.
HARNESS_AUTO_APPROVE_RISKA deployment-level ceiling for auto-approval. A session can lower it with the x-harness-auto-approve-risk header but not raise it.
HARNESS_TOOLSETSFilters which toolsets and resource definitions load at startup.
HARNESS_ORG and HARNESS_PROJECTDefault org and project for calls that do not name one.
HARNESS_MCP_AUTH_TOKENRequires a Bearer token on every request to the HTTP server. Required for non-loopback binds.

The risks

  • harness_execute can run or retry pipelines, toggle feature flags and sync GitOps apps, so an injected instruction could trigger a production deploy with your token’s rights.
  • harness_delete removes resources across the platform, and one tool routes to many resource types, so a single permission prompt can cover very different objects.
  • A personal access token carries your Harness permissions. Use a service account token with a narrow role instead.
  • If you run the HTTP mode on a shared host without HARNESS_MCP_AUTH_TOKEN or OAuth, anything that reaches the port can use it.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env HARNESS_API_KEY=... harness -- npx -y harness-mcp-v2

Claude Code names MCP tools mcp__harness__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__harness__harness_delete"
    ],
    "ask": [
      "mcp__harness__harness_execute",
      "mcp__harness__harness_create",
      "mcp__harness__harness_update"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.harness]
command = "npx"
args = ["-y", "harness-mcp-v2"]
env_vars = ["HARNESS_API_KEY"]
disabled_tools = ["harness_delete"]

Checklist

  • Set HARNESS_READ_ONLY to true unless you need changes.
  • Use a service account token limited to one project and role.
  • Set HARNESS_ORG and HARNESS_PROJECT.
  • Deny harness_delete and keep confirmation on for harness_execute.
  • Leave HARNESS_AUTO_APPROVE_RISK at its default of none.

Checked against the vendor documentation on November 25, 2026. Harness docs: MCP server · Harness docs: tools reference · harness/mcp-server README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing