Skip to content
Back to the blog

Connect an AI assistant to hosting with Hostbrid MCP

Connect AI to Hostbrid with OAuth or a revocable key. Manage hosting and VPS and publish from Git through Projects with permissions and approval.

  • MCP
  • AI
  • hosting
  • API

You can connect an MCP-compatible client to your Hostbrid account to inspect resources and, with additional permissions, request selected actions. A new key is read-only. Creating resources, preparing purchases and deleting them use separate permissions; a purchase is not charged until you confirm it in your panel.

This connection manages account resources and can publish a compatible repository through Projects, using specific permissions and your authorized Git connection. To run your application’s own MCP server, follow the separate host your own MCP route. The MCP server installation guide covers the persistent process, HTTPS and authentication.

If you are integrating a script without an MCP client, follow the guide to make your first REST API request.

If you are still choosing a provider, see the dated MCP hosting comparison, which distinguishes account integrations from running your own MCP server.

Connect with OAuth or a key

Use https://my.hostbrid.com/mcp?codemode=search_and_execute. For OAuth-compatible clients, start the connection flow, sign in to Hostbrid and review the requested permissions before authorizing. Revoke access from OAuth connections. OAuth consent does not replace approval for a payment or sensitive change.

If your client supports Bearer instead of OAuth, create a revocable key as described below. The REST API is a separate interface for scripts; check the authentication required for your integration there.

The address above enables Code Mode: hostbrid_buscar_herramientas discovers authorized operations and hostbrid_ejecutar_codigo composes them with JavaScript. These are two entry tools for the same catalogue; they do not promise every task finishes in two calls. Permissions, limits and approvals still apply.

You can also use the classic connection https://my.hostbrid.com/mcp, which advertises individual tools. Switching modes grants no permissions. See the measurement and method: up to 99.5% fewer initial schema tokens for the full catalogue (427 tools and 26 permissions, o200k_base); the measured read-only profile reduces them by 97%. This is not a bill saving and excludes search, execution and result tokens.

1. Create an MCP key in Hostbrid

Sign in to the panel and open AI keys. Create a key and store it in a secrets manager. The full value is shown once; do not paste it into a chat, repository, screenshot or shared file.

A new key can only read. If you need to change resources, request the specific permissions in the panel; deletion is separate. Avoid granting every permission “just in case”.

2. Add the server to an MCP-compatible client

In the client’s remote-server settings, enter the endpoint and authorization header. Replace nxp_your_key with the real key inside the client’s secure settings:

{
  "mcpServers": {
    "hostbrid": {
      "type": "http",
      "url": "https://my.hostbrid.com/mcp?codemode=search_and_execute",
      "headers": {
        "Authorization": "Bearer nxp_your_key"
      }
    }
  }
}

The endpoint uses remote MCP over HTTP with Bearer authentication. The exact setting depends on the client: confirm your version supports remote HTTP MCP servers and custom headers. Do not put the key in the URL; secrets in URLs can end up in browser history and logs.

Connect Hostbrid to Lovable

In Lovable, open Connectors, select + → MCP server, name the connection Hostbrid, and enter https://my.hostbrid.com/mcp?codemode=search_and_execute. Choose OAuth and complete Add & authorize with your Hostbrid session. For a manual key, select Bearer token or API key and store it in the connector’s secure authentication field. Lovable supports custom remote MCP servers as personal chat connectors; see its custom MCP setup guide for the current interface and workspace controls.

Start with the read-only key and ask Lovable: “List my sites and plans; do not change anything.” Confirm that the answer matches your Hostbrid account. Grant only the permissions you need. Lovable may ask before using tools that can write, but Hostbrid’s own permissions still apply; an order that costs money must be confirmed in the Hostbrid panel.

This connection is used in Lovable chat and is not included in your website’s code. It can call Projects tools to publish an authorized repository, subject to permissions and configuration.

3. Test the connection before allowing changes

Start with a harmless prompt such as: “List my sites and tell me which plan each uses; do not change anything.” Check that the response shows the expected account and resource scope. The read-only key can inspect sites, domains, databases and machine status according to the current tool catalogue.

If the client cannot connect, check for spaces in the token, the Bearer prefix and remote HTTP support. Create a replacement key if the old one may have been exposed, then revoke the unused key.

4. Grant only the permission the task needs

Tools are grouped by scope. Some lower-risk actions can be enabled for writing; preparing paid orders uses a separate permission. Deletion is separate too and shows what would be lost first. Read the current catalogue and examples on the Hostbrid MCP page before authorizing actions.

A purchase request prepares the configuration and price for review; your AI cannot confirm payment or access your card details. Open the panel, check the amount, billing period and extras, then confirm yourself if you want to proceed. For deletion, review the preview before allowing the action.

What it can and cannot do

  • It can read data in the MCP catalogue and run actions covered by the permissions you grant.
  • It does not reveal database, email, FTP or shell passwords.
  • It does not replace your Git repository or the build and deployment settings in Projects.
  • An AI response is not proof that your application works: test the site, backend and data after deployment.
  • The REST API and MCP are separate interfaces. For software automation without an AI client, use the public API reference.

Publish a repository from your assistant

First connect your Git provider from Projects in the panel and authorize the repository with your own session. The assistant must not ask for your Git token in chat or impersonate your approval.

  1. With projects:leer, use hostbrid_listar_conexiones_git, hostbrid_listar_repositorios_git and hostbrid_listar_ramas_git to choose an authorized connection and branch.
  2. Run hostbrid_previsualizar_proyecto. Review repository, branch, folder, framework, build and output. A Dockerfile service requires an eligible plan; the assistant does not purchase a different plan for you.
  3. With projects:publicar, use hostbrid_crear_proyecto to create the Project and queue its first deployment. Reuse the same idempotency key when retrying the same request.
  4. To replace production, hostbrid_prever_publicacion_proyecto returns the approval link. You review and approve the exact commit in the panel; then hostbrid_publicar_proyecto runs. The assistant cannot approve on your behalf.
  5. Check hostbrid_ver_despliegue until publicado (published) or failure. en_cola only confirms the request is queued. Open the final URL and test the page and its features before calling it published.

Codex and Claude Code

In Codex CLI, add the server and complete OAuth:

codex mcp add hostbrid --url 'https://my.hostbrid.com/mcp?codemode=search_and_execute'
codex mcp login hostbrid

For a manual key, Codex supports --bearer-token-env-var HOSTBRID_MCP_TOKEN: set that variable securely without writing its value in the command or repository. See the official Codex MCP documentation.

In Claude Code, use claude mcp add --transport http hostbrid 'https://my.hostbrid.com/mcp?codemode=search_and_execute', then open /mcp to authenticate. See the official Claude Code instructions. Custom ChatGPT connections depend on your account and workspace; follow OpenAI’s setup instructions. A directory listing does not grant access to your account.

Frequently asked questions

Can I connect Claude, Cursor or another client?

Use a client that supports remote MCP servers over HTTP and authentication headers. Menus and requirements vary by client and version; check that application’s connection guide.

Does MCP deploy my website from GitHub?

Yes, through Projects with projects:leer and projects:publicar permissions. You authorize Git access, review configuration and approve the exact commit when production already exists. The assistant must check the final state, and you verify the URL.

Can the AI buy or delete without me seeing it?

A purchase is prepared for you to confirm in the panel. Deletion requires its own permission and shows a preview of what will be lost. Keep permissions disabled when you do not need them.

See the current MCP catalogue, permissions and examples, the API and hosting documentation, and guides to publishing Git projects.

Manage your sites, servers and email.

Forgot your password?

Free, and it takes a minute.

At least 8 characters. Not all digits, not a common one.

We'll email you to confirm the account.