MCP → REST
The REST endpoint behind each hostdocs MCP tool.
Everything the hostdocs MCP server exposes is available on the REST API. If you've used the MCP tools from Claude or ChatGPT, here's the equivalent endpoint to call directly with an API key.
| MCP tool | Method & endpoint |
|---|---|
list_workspaces | GET /api/v1/accounts |
list_sites | GET /api/v1/sites |
list_pages | GET /api/v1/pages |
get_page | GET /api/v1/pages/{id} |
create_page | POST /api/v1/pages |
update_page | PUT /api/v1/pages/{id}/content |
delete_page | DELETE /api/v1/pages/{id} |
list_collections | GET /api/v1/collections |
create_collection | POST /api/v1/collections |
list_records / search_records | GET /api/v1/collections/{id}/records |
create_record | POST /api/v1/collections/{id}/records |
The MCP server itself authenticates with one of these same API keys — set
HOSTDOCS_API_TOKEN to a key to run it without an interactive login.
Use the x-hostdocs-account-id and x-hostdocs-site-id headers to choose the
workspace and site, exactly as the MCP tools' accountId / siteId arguments do.