Overview
CertGov implements the Model Context Protocol (MCP), an open standard that lets AI assistants call structured tools over HTTP. Once connected, you can manage your certificate environment in plain language — no API client, no scripting.Prerequisites
- A CertGov API key with the
mcpscope (Settings → API Keys → Add Key) - An MCP-compatible AI client (see Compatible Clients)
Endpoint
app.certgov.app with your own hostname.
Transport: Streamable HTTP (MCP 2024-11-05). Single POST endpoint; synchronous JSON responses.
Available Tools
Certificates & Audit
Approvals
Governance — Query
Diagnostics
Setup Guidance
Action Tools — Create (two-step)
Action tools require explicit confirmation before writing anything. See Two-Step Confirmation below.Feedback
Example: Checking a Pending Approval with DNS Challenge
When a cert is stuck waiting for a manual DNS TXT record,list_approvals shows the challenge details:
list_approvals(status="pending") and finds:
Example: Diagnosing an ACME Issuance Failure
When a certificate fails to issue, the agent can trace the problem end-to-end:check_domain(domain="secure.example.com")— finds the Trust Profile and its configured CAlist_dns_accounts()— inspects the Cloudflare DNS account referenced by that profile
Example: Certificate Security Rating
Every certificate issued by CertGov carries a security grade. Theget_certificate tool includes it automatically:
Two-Step Confirmation
All action tools (create_*) use a mandatory two-step flow. Passing dry_run=false alone is not enough — the tool also requires confirmed=true. This is enforced in code, not just instructions.
Step 1 — Preview (default)
Call the tool with any arguments. A preview is always returned first:Step 2 — Execute
After the user confirms, call again with bothdry_run: false and confirmed: true:
Example: End-to-End nginx Setup
Theplan_setup tool generates a personalized checklist from your current state:
plan_setup(domain="fun.example.com", goal="nginx_auto_issuance") and gets back a step-by-step plan:
- Configure a Certificate Authority (if none exists) → links to the CA Connectors guide or ACME Setup
- Create a Trust Profile for
fun.example.com→ links to Trust Profiles - Create an Application record → links to Applications
- Install the connector agent on the nginx host → links to Connector Agent
- Add a Delivery Target to the Application → links to Local Application Cert Delivery
- Verify end-to-end with
check_domainandcheck_dns
done. The AI then walks through each required step using the two-step create flow — previewing each change before creating it.
Setup: Claude Desktop
- Mac
- Windows
Edit Restart Claude Desktop. CertGov tools are available in every conversation.
~/Library/Application Support/Claude/claude_desktop_config.json:Setup: Claude Code (CLI)
Claude Code runs on Linux, Mac, and Windows. Add CertGov as a server:claude session — MCP tools initialize at session start.
Setup: Cursor
Add to~/.cursor/mcp.json (create if it doesn’t exist):
Setup: Zed
Add to~/.config/zed/settings.json:
Setup: OpenAI-compatible clients (Grok, GPT-4o, etc.)
Clients that use OpenAI function-calling (xAI Grok, OpenAI Assistants, etc.) don’t support the MCP transport natively. Usemcp-bridge to proxy:
http://localhost:8080 for tools.
Compatible Clients
Analytics & Unsolved Queries
Every tool call is recorded in the MCP / AI Agents dashboard (Settings → MCP / AI Agents):- Tool Usage — which tools are called, how often, error rates, and average latency
- Recent Calls — last 50 invocations with status, latency, arguments, and the key that made the call
- Unsolved Queries — requests the AI logged via
report_missing_capabilitywhen no tool existed for what the user asked