Skip to main content

Overview

AI assistants write better Formal configuration when they can read current docs and your real organization state. Formal gives them three sources. Inside the Control Plane, Formal Agent searches these docs, the API reference, and your logs for you.

Connect Formal MCP

Formal MCP runs as the identity that signs in. The client never sees or changes more than you can in the Control Plane.
The client opens a browser so you can approve it. See Connect Formal MCP for write access, other clients, and API keys.

Connect the docs MCP server

Add https://docs.formal.ai/mcp to your client to let it search these docs.
Verify: Ask the assistant “How do Formal network rules select traffic?” It should cite a page from these docs. To log and control what agents do with this server, route it through the MCP Gateway. See Formal Docs MCP.

Use a page as context

Every page has a Copy page menu at the top. Use it to copy the page as Markdown, or to open it in ChatGPT, Claude, Perplexity, Cursor, or VS Code. For the whole site, point the assistant at the plain-text index:

Next Steps

Connect Formal MCP

Sign in with OAuth or an API key, and control write access

Formal Agent

Use the assistant built into the Control Plane

Formal API

Call the API your assistant uses

Terraform

Have the assistant write Formal as code