CLI
Connect any MCP server in one command
The mcphosting CLI auto-detects your AI client, wires up your hosted MCP endpoint, lets you search, add and manage servers, and drives full Assistant runs — all without leaving the terminal.
Install
npm install -g mcphosting-cliOr run any command on demand with npx mcphosting-cli. Once installed, run mcphosting connect to authenticate with your Bearer mcph_* key.
Commands
mcphosting add <slug>Add a server from the registry to your workspace and configure it for the AI client it detects (Claude, ChatGPT, Cursor). One command, wired up and ready.
Example
$ mcphosting add stripe
✔ Found com.mcphosting/stripe in the registry
✔ Added to workspace "Acme Inc"
✔ Detected client: Claude Desktop
✔ Wrote endpoint + mcph_* key to claude_desktop_config.json
Restart Claude Desktop to use stripe_* tools.mcphosting search <query>Search the MCP registry for servers and connectors. Backed by the public /api/registry/v0/servers feed, so results match the marketplace.
Example
$ mcphosting search analytics
SLUG NAME VENDOR
gsc Search Console Google
dataforseo DataForSEO DataForSEO
stripe Stripe Stripe
3 results · run "mcphosting add <slug>" to connect onemcphosting connectAuthenticate the CLI with a Bearer mcph_* key and target a workspace. Stores the key in your OS keychain and points subsequent commands at your hosted endpoint.
Example
$ mcphosting connect
? Paste your mcph_* API key: ****************************
✔ Authenticated as workspace "Acme Inc"
✔ Endpoint: https://businessmcp.com/api/mcp/mcp
✔ Key saved to system keychain
You're ready. Try "mcphosting list".mcphosting listList the servers and tools connected to your workspace and available through your MCP endpoint — including built-in platform tools and namespaced connector tools.
Example
$ mcphosting list
CONNECTED SERVERS
github github_* 8 tools
gsc gsc_* 3 tools
stripe stripe_* 5 tools
PLATFORM TOOLS
get_analytics, create_task, send_email, create_campaign …
Endpoint: https://businessmcp.com/api/mcp/mcpmcphosting run "<prompt>"Drive a full Head-of-BI Assistant run from your terminal. Wraps POST/GET /api/v1/runs — it queues the run, polls, and prints the reply. Add --deep for a bigger, verified analysis pass. Same agent, tools and access policy as the dashboard.
Example
$ mcphosting run "Which channel drove our most valuable customers this quarter?"
⠋ Thinking… (get_analytics, get_analytics_segment, get_contact_timeline)
Organic Search drove the highest-LTV cohort this quarter: 41 customers
at a $312 average LTV, vs $180 for Paid Social. Full breakdown:
• Organic Search — 41 customers, $12,792 LTV
• Referral — 18 customers, $6,120 LTV
• Paid Social — 27 customers, $4,860 LTV
Thread: th_7b21Building an integration?
The CLI wraps the platform API. See the full reference for raw curl and JSON.