AI & MCP
Connect Claude Code
Copy page
Connect Claude Code to Hostino MCP — on the same machine or on a headless server
Claude Code is the tested and recommended client for Hostino MCP.
1. Add the server
claude mcp add --transport http --scope user hostino https://mcp.hostino.ai/mcpWith --scope user the server is available in all your projects. Drop --scope user to add it to the current project only.
Check:
claude mcp listhostino shows “Needs authentication”. That’s expected: you haven’t signed in yet.
2. Sign in
In Claude Code run:
/mcpSelect hostino and choose Authenticate. Claude Code opens (or prints) the sign-in link. Sign in with your Hostino account and approve both permissions on the consent page.
Case A: Claude Code and the browser on the same machine
After approving, click Continue (same machine) on the ”✅ Signed in” page. Claude Code switches to connected.
Case B: Claude Code on a server or browserless terminal
- Copy the link Claude Code prints and open it in your laptop or phone browser.
- Sign in and approve.
- On the ”✅ Signed in” page, click Copy command.
- Run the command in another terminal on the same server as Claude Code:
curl 'http://localhost:PORT/callback?code=…&state=…'Claude Code receives the code and switches to connected. The code is valid for 5 minutes; if it expires, choose Authenticate again.
3. Use it
Ask Claude Code:
- “List my services with their due dates.”
- “Which services are due in less than 30 days?”
- “What’s the status of example.com?”
- “Which of my domains are expired or expire in the next 60 days?”
- “Show my unpaid invoices.”
- “Suggest a plan for this project and, after I agree, request it.” (you open the approval link yourself)
Claude Code calls the right tool. All are read-only except request_order, which only creates a purchase request with an approval link. Tool details
Managing the connection
| Task | Command |
|---|---|
| Status | claude mcp list or /mcp |
| Sign in again (e.g. for a new permission) | /mcp → hostino → Re-authenticate |
| Remove | claude mcp remove hostino |
Having trouble? See Troubleshooting.