Harness Hosted MCP
Connect MCP-compatible clients to the Harness-managed MCP endpoint using OAuth through Harness ID, with no API key in your client configuration.
Harness provides a hosted MCP endpoint for Harness SaaS customers. You add the hosted URL to your MCP-compatible client, and when you first connect, you complete OAuth through Harness ID (browser or embedded sign-in, depending on the client). After authentication, the server runs MCP on your behalf using your Harness user identity, including RBAC and permissions from the platform. You do not configure a Harness API key in the client for this flow.
Hosted MCP requires OAuth to be enabled on your Harness account. Contact Harness Support to enable OAuth before you use Hosted MCP. Without OAuth enabled, you receive authentication errors even when your Harness login credentials are valid.
If your account authenticates through a SAML or OIDC Identity Provider, sign-in also requires an MCP-specific ACS URL (SAML) or redirect URI (OIDC) in that Identity Provider. Add it by following Single Sign-On (SSO) for Harness MCP before you configure a client.
Hosted endpoint
For the primary Harness SaaS control plane, you can use the following URL:
https://mcp.harness.io/mcp
If your organization uses a dedicated SaaS cluster or a non-default region, confirm the MCP base URL with Harness Support. The MCP path is typically /mcp on that host.
Authentication flow
The following flow of control describes how authentication works with hosted MCP configuration:
Save the hosted MCP configuration in your client using the URL above.
When prompted, sign in with your Harness email and password through Harness ID.
You may be asked to confirm your password on a second Harness ID screen.
After a successful login, you return to your editor or terminal. The client loads MCP tools exposed for your account. Which tools appear depends on your Harness licensing, consistent with the capabilities of the open source MCP server.
OAuth client ID
When a client asks for an OAuth client ID for Harness hosted MCP, use mcp-client. For example, with Claude Code's --client-id flag or in Cursor's auth block.
Configure a client for hosted MCP
Each client below points at the hosted URL instead of running a local process.
Cursor
Add a hosted MCP entry in Cursor's MCP settings (for example, Settings > MCP), using the HTTP URL and client ID:
After you enable the server, Cursor prompts you to connect and complete Harness ID authentication. For more information, see Cursor MCP documentation.
Claude Code
For more information, see Claude Code MCP documentation.
Windsurf
In your Windsurf MCP configuration (for example, ~/.codeium/windsurf/mcp_config.json on macOS and Linux, or %USERPROFILE%\.codeium\windsurf\mcp_config.json on Windows), add a server entry that points at the hosted URL and supplies the client ID:
For more information, see Windsurf MCP documentation.
Visual Studio Code
Add an HTTP MCP server in .vscode/mcp.json (workspace) or your user MCP configuration. VS Code negotiates OAuth with the server when supported:
Accept any trust prompt for the server, then follow Copilot chat prompts to sign in with Harness when authentication is required. For more information, see VS Code MCP configuration reference.
Troubleshooting
Next steps
Tools reference: Review tools available through the hosted endpoint.
Approvals and safety: Understand how write operations request confirmation.
Self-hosted deployment: Run the server yourself with Docker or Kubernetes instead.
Last updated
Was this helpful?