Connect an AI assistant to MaintainHQ with MCP
Last updated
MCP (Model Context Protocol) is a standard way for AI assistants to use outside tools. MaintainHQ runs an MCP server, so you can connect the assistant you already use and ask it about your sites in your own words: “which sites have updates waiting?”, “did last night’s backups work?”, “ask Gus why the shop is slow”.
Most assistants connect by signing in, with no keys to copy. You approve the connection in MaintainHQ and choose what it may do. This guide covers setting it up for each assistant and what a connected assistant can and cannot do. Limiting access and checking what it did are covered in AI assistant permissions and activity.
Before you start
- Connecting assistants is included in the Pro and Agency plans. See the pricing page.
- Open API & MCP under Settings in the left-hand menu, then the Connect an assistant tab. It shows the MCP server address (https://api.maintainhq.com/mcp) with a copy button, and steps for each assistant.
- Be signed in to MaintainHQ in your browser, so the approval page opens straight away.
What a connected assistant can do
Your assistant can list and search your sites, and check health, updates, vulnerabilities, uptime, incidents, backups, Gus findings, fix plans and reports. It can see your hosted sites with their usage history and backups. It can ask Gus about a site (read-only, and each question uses some of your Gus allowance).
With the Draft fix plans permission, it can also draft a Gus fix plan for you to review.
Claude (claude.ai and Claude Desktop)
- In Claude, open Settings, then Connectors, then Add custom connector.
- Name it MaintainHQ, paste the MCP server address and choose Add.
- Choose Connect. A MaintainHQ page opens asking you to approve the connection.
- Choose what to allow and press Allow (see below).
ChatGPT
- In ChatGPT, open Settings, then Apps & Connectors, then Advanced settings, and turn on developer mode.
- Choose Create and name it MaintainHQ.
- Paste the MCP server address and pick OAuth for authentication.
- Approve the connection on the MaintainHQ page that opens.
Claude Code, Codex, Cursor, VS Code and others
- Claude Code: run the command shown on the Connect an assistant tab in a terminal, then run /mcp in Claude Code and choose MaintainHQ to sign in.
- Codex: run the two commands shown on the tab. The second opens your browser to sign in.
- Cursor, VS Code and other MCP clients: add a remote (HTTP) MCP server with the address above. The tab has a configuration snippet to copy. The client opens MaintainHQ to sign in the first time it connects.
- Agents you build yourself on a model API, such as the OpenAI or xAI APIs: these cannot sign in, so they send an API key in an Authorization header instead. Create a key on the Keys tab; the tab shows an example request. See API keys and the REST API.
The approval page
When an assistant asks to connect, MaintainHQ shows a page headed “Connect [assistant name] to MaintainHQ?”. Check it carefully before you press anything.
- Signed in as: the MaintainHQ account the assistant will act as.
- Where it will be sent back to: the web address of the assistant. If you do not recognise it, press Deny.
- Allow it to: Read is always included. Tick Write or Draft fix plans only if you want the assistant to do those things. Each option explains what it covers.
Press Allow to connect, or Deny to refuse. The assistant then appears under Connected assistants on the Keys tab of API & MCP.
If the page says “This connection request is not valid”, start the connection again from the assistant. Connections cannot be approved while MaintainHQ staff are logged in as you for support.
Disconnecting an assistant
On the Keys tab of API & MCP, find the assistant under Connected assistants and press Disconnect. It loses access straight away. You can connect it again later by signing in from the assistant.
There is one connection per assistant. Connecting the same assistant again updates its permissions rather than adding a second one.