hostdocs API

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 toolMethod & endpoint
list_workspacesGET /api/v1/accounts
list_sitesGET /api/v1/sites
list_pagesGET /api/v1/pages
get_pageGET /api/v1/pages/{id}
create_pagePOST /api/v1/pages
update_pagePUT /api/v1/pages/{id}/content
delete_pageDELETE /api/v1/pages/{id}
list_collectionsGET /api/v1/collections
create_collectionPOST /api/v1/collections
list_records / search_recordsGET /api/v1/collections/{id}/records
create_recordPOST /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.