Automate with MCP and the API
Run a docs site from an AI agent or a script: write pages, build, publish, and manage settings without opening Falconer.
Everything you can do from Site configuration is also a tool on the Falconer MCP and an endpoint on the public API. Connect the MCP to Claude, Cursor, or Codex and ask in plain language, or call the API from your own automation. The tools are listed on the MCP tools reference; this page shows how they fit together.
Before you start
Section titled “Before you start”- Connect the Falconer MCP to your client. For unattended runs, such as a CI job, use an organization bot instead of a personal login.
- Publishing, settings, passwords, and custom domains need an organization owner. Editing pages and starting builds need edit access to the space.
- Every tool takes a
spaceId. Get it fromlist_docs_sites, which lists the sites you can see, orlist_spaces.
Set up a site
Section titled “Set up a site”create_docs_siteturns a space into a site, seeded with starter pages. PasssyncWithGithubto skip the starter pages when the content comes from a repository you bind next withbind_repository. It returns the existing site when the space already has one.set_docs_subdomainpicks the address underfalconer.site.
Write and arrange pages
Section titled “Write and arrange pages”| Do this | Tool |
|---|---|
| Add a page to the site | create_docs_view_page creates a page in the navigation; create_file_view_page creates the file only |
| Put an existing file in the navigation | publish_file_view_page, at the site root or under a container from get_docs_view |
| Edit a page | The document tools, such as overwrite and replace_document_content, by document id |
| Write a config or asset file | write_file_view_file, with the ifMatch etag from read_file_view_file so you never overwrite a newer edit |
| Move, rename, hide, or make private | move_docs_view_items, update_docs_view_item, reorder_docs_view_children, remove_docs_view_item |
Pages created through the file tools follow the same rules as pages created in the app. See Docs view and Files view.
Build and publish
Section titled “Build and publish”trigger_docs_buildstarts a build. PassautoPublishto publish as soon as it succeeds, which is what Publish site does in the app.- Poll
get_docs_builduntil the status issucceededorfailed. Search indexing is reported separately on the build and finishes after it. get_docs_broken_linkslists what the build found, the same list as Issues.request_docs_previewbuilds a private preview of the current content; pollget_docs_previewfor the URL, which opens for signed-in owners.publish_docs_buildmakes a build live. Pass an older build id to roll back, andforceto publish before indexing has finished.unpublish_docs_sitetakes the site offline;cancel_docs_buildanddelete_docs_buildmanage the list.
Change settings
Section titled “Change settings”get_docs_site_configandupdate_docs_site_configread and change the same fields as Site configuration: name, logo, favicon, colors, navbar, footer, context menu, SEO, social links, and analytics. Passnullto clear a field. Logo and favicon are paths in the space’s Files view. Changes go live with the next build.get_docs_redirectsandset_docs_redirectsmanage redirects.set_docs_redirectsreplaces the whole list, so pass the list you read asbase; edits made in between are kept.set_docs_site_password,clear_docs_site_password, andsign_out_docs_site_visitorscontrol password protection.
Custom domain
Section titled “Custom domain”set_docs_custom_domainattaches the domain and returns the CNAME target for a subdomain, or the proxy target for a path.- Add the DNS record or forwarding rule, then
check_docs_custom_domainuntil it reportsready. activate_docs_custom_domainstarts serving the site there. This turns on the paid add-on; see Plans and limits.disable_docs_custom_domainstops serving and billing but keeps the setup;remove_docs_custom_domaindeletes it.
The same operations over HTTP
Section titled “The same operations over HTTP”The public API exposes every operation above under https://falconer.com/api/v1/docs-sites, with the same names and permissions. Authenticate with an organization bot token or an API key. The full reference is the OpenAPI document at https://falconer.com/api/v1/openapi.json.
Example: publish after a merge
Section titled “Example: publish after a merge”For a space synced with GitHub, a merge to the synced branch is pulled into Falconer by two-way sync. A job that runs after the merge can then trigger a build with autoPublish, through the MCP or POST /docs-sites/{spaceId}/builds, so the site follows the branch, and read the broken links to fail the job when the build found any.