home / mcp / deployhq mcp server
Provides a Model Context Protocol bridge to DeployHQ enabling AI assistants to manage projects, servers, and deployments.
Configuration
View docs{
"mcpServers": {
"deployhq-deployhq-mcp-server": {
"command": "npx",
"args": [
"-y",
"deployhq-mcp-server"
],
"env": {
"NODE_ENV": "production",
"LOG_LEVEL": "INFO",
"DEPLOYHQ_EMAIL": "[email protected]",
"DEPLOYHQ_ACCOUNT": "your-account-name",
"DEPLOYHQ_API_KEY": "your-api-key"
}
}
}
}You deploy DeployHQ as an MCP server to let AI assistants interact with your DeployHQ deployments. It provides a secure, typed, and transport-flexible bridge that lets you list projects, servers, and deployments, create new deployments, and fetch logs, all through a clean MCP interface.
Operate the MCP server from an AI assistant by configuring a local or hosted MCP client to connect via the stdio transport. You will start the MCP server through a package runner and pass credentials through environment variables. Once connected, you can ask your assistant to list projects, inspect servers for a project, view deployment histories, retrieve logs, and create new deployments. The server handles authentication with DeployHQ and provides sane defaults for error handling and logging.
Prerequisites you need before proceeding:
# Easy install with Claude Code via MCP setup (stdio transport)
claude mcp add --transport stdio deployhq \
--env [email protected] \
--env DEPLOYHQ_API_KEY=your-api-key \
--env DEPLOYHQ_ACCOUNT=your-account -- npx -y deployhq-mcp-serverThis configuration uses a stdio transport. The server runs via npx and the environment variables provide the necessary credentials without storing them.
Use the following config to run the MCP server locally or in your Claude Code project. It specifies the stdio runtime and the required credentials.
{
"mcpServers": {
"deployhq": {
"command": "npx",
"args": ["-y", "deployhq-mcp-server"],
"env": {
"DEPLOYHQ_EMAIL": "[email protected]",
"DEPLOYHQ_API_KEY": "your-api-key",
"DEPLOYHQ_ACCOUNT": "your-account-name",
"LOG_LEVEL": "INFO"
}
}
}
}Credentials are supplied via environment variables and are not stored by the MCP server. Use least-privilege API keys and consider restricting read/write access as needed. Enable verbose logging only when troubleshooting by setting LOG_LEVEL to DEBUG.
If the server fails to start, verify that required environment variables are set and that Node.js 18+ is installed. Look for error messages in your Claude client logs and enable DEBUG-level logs if needed by setting LOG_LEVEL=DEBUG.
With the server connected, you can instruct your assistant to perform typical tasks such as listing all DeployHQ projects, showing servers for a specific project, retrieving the latest deployment status, creating a new deployment, or retrieving deployment logs for debugging.
If you host the MCP server with a web transport, you can expose an HTTP or SSE interface for integration. Follow standard hosting setup for your platform and ensure your environment variables remain protected.
When you configure Claude Code, youโll typically supply the stdio runtime and credentials in the client configuration, as shown in the example above. The actual runtime command used by the MCP server in this setup is npx with the deployhq-mcp-server package.
Required: DEPLOYHQ_EMAIL, DEPLOYHQ_API_KEY, DEPLOYHQ_ACCOUNT. Optional: LOG_LEVEL, NODE_ENV. These variables control authentication, log verbosity, and runtime behavior.
A typed, secure bridge to the DeployHQ REST API that supports multiple transports, easy setup with MCP clients, and production-ready error handling and logging.
List all projects in your DeployHQ account. Returns an array with repository information and deployment status.
Get detailed information about a specific project using its permalink or identifier.
List all servers configured for a given project.
List deployments for a project with pagination support.
Get detailed information about a specific deployment.
Get the deployment log output for debugging failed deployments.
Create a new deployment for a project with configurable parameters.