MCP server

Your database in the hands of AI agents. Safely.

HostBase exposes a Model Context Protocol server for your whole account. Connect Claude, Cursor, Windsurf or VS Code and your assistant can create projects, run SQL, deploy Edge Functions and manage secrets — with your role's permissions.

Streamable HTTPexecute_sql and function deploysClaude, Cursor, VS CodePersonal API tokens
claude_desktop_config.json
{
  "mcpServers": {
    "hostbase": {
      "url": "https://host.ulewicz.space/api/mcp",
      "headers": {
        "Authorization": "Bearer hb_pat_your_token"
      }
    }
  }
}

Capabilities

What you get with MCP

SQL queries

The execute_sql tool — the agent reads the schema from information_schema, analyzes data and applies changes.

Project management

list_projects, create_project, pause_project, restore_project and get_project_keys.

Edge Functions

List, view source, deploy and delete functions, and manage secrets.

Role permissions

The agent acts with your account's organization role — a readonly role can't run SQL or deploy.

Personal tokens

Create and revoke hb_pat_ tokens in the dashboard; each one shows when it was last used.

No keys in the chat

get_project_keys returns only the URL and anon key — the service_role key never reaches the agent.

Use cases

What teams use it for

Coding with AI

Cursor and Claude Code know your schema and write correct queries.

Natural-language analytics

Ask questions about business data without writing SQL.

DevOps automation

The agent creates test projects, prepares the schema and deploys functions.

Build in a weekend. Scale to millions.

Spin up a free project in 2 minutes. No credit card, no pausing after a week.