mcp
This is the official repo for the Harness MCP server
claude mcp add --transport stdio harness-mcp-server docker run -i harness/mcp-server:latest \ --env MCP_LOG_LEVEL="info"
How to use
The Harness MCP Server exposes a collection of Microsoft Context Protocol (MCP) toolsets that let you automate and interact with Harness services from your tooling. It includes default tooling for core operations like listing and inspecting connectors, pipelines, dashboards, and secrets, as well as specialized toolsets for pipelines, pull requests, services, environments, infrastructure, connectors, registries, dashboards, and more. By connecting through MCP, you can drive Harness-driven automation, fetch execution URLs for pipelines, retrieve dashboard data, and orchestrate complex workflows using a consistent, tool-agnostic interface.
Typical usage involves starting the MCP server (via the provided Docker image in this configuration) and sending MCP requests to invoke specific toolset commands. Each toolset is named (for example, default, pipelines, connectors, secrets, etc.) and contains a defined set of operations such as list_, get_, and create_ actions. This enables you to compose automation that can query Harness resources, trigger runs, fetch results, and monitor state across multiple services from a single entry point.
How to install
Prerequisites:
- Docker installed and running
- Basic familiarity with MCP clients or tooling that can communicate with MCP servers
Install and run the MCP server using Docker:
-
Pull and run the Docker image:
docker run -d --name harness-mcp-server -p 8080:8080 -e MCP_LOG_LEVEL=info harness/mcp-server:latest
-
Verify the server is responding (adjust port if you mapped differently):
-
(Optional) Configure your MCP client to point to http://localhost:8080 and begin issuing MCP requests using the supported toolsets.
If you prefer building from source, ensure you have Docker and your preferred build tools installed, then follow the project-specific build instructions in the repository (often involving a containerized build or a local Node/Python environment, depending on the project).
Additional notes
Tips and common issues:
- Ensure the Docker image harness/mcp-server:latest is accessible in your environment (pull if necessary).
- If you customize environment variables, expose or map the required ports and verify connectivity from your MCP client to the server.
- The MCP server may expose multiple toolsets; refer to the server's API docs or help endpoints (e.g., /v1/help) to discover available commands.
- For debugging, set MCP_LOG_LEVEL to debug to obtain verbose logs.
- If authentication is required by your Harness instance, configure the appropriate auth tokens or credentials in the client requests; the server may support env-based or header-based authentication depending on deployment.
- When running behind a proxy or firewall, ensure the MCP server port is accessible and that MCP clients can reach it directly.
Related MCP Servers
trpc-agent-go
trpc-agent-go is a powerful Go framework for building intelligent agent systems using large language models (LLMs) and tools.
station
Station is our open-source runtime that lets teams deploy agents on their own infrastructure with full control.
tiger-cli
Tiger CLI is the command-line interface for Tiger Cloud. It includes an MCP server for helping coding agents write production-level Postgres code.
gopls
MCP server for golang projects development: Expand AI Code Agent ability boundary to have a semantic understanding and determinisic information for golang projects.
kubernetes
A Model Context Protocol (MCP) server for the Kubernetes API.
gcp-cost
💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go