Connect your AI
Once your assistant is connected to Modula, you can ask it in plain words for a lesson, a story or an exercise: it builds the page with Modula blocks and gives you a document to save, reopen and publish. You add Modula once, in your assistant’s settings, and sign in with your Modula account.
Choose your assistant
| Assistant | Where you add Modula |
|---|---|
| Claude.ai | One-click link, or Plugins → Add → Add custom connector |
| ChatGPT | Plugins → Add → Add custom MCP server (plans and workspaces that allow custom MCP servers) |
| Claude Code | One command in the terminal |
| Codex | One command in the terminal, or ~/.codex/config.toml |
| Cursor | One-click install link, or ~/.cursor/mcp.json |
| GitHub Copilot | One-click install link in VS Code, or mcp.json |
Select your assistant from the list above or from the sidebar for step-by-step setup instructions, including what your plan of that service needs to allow.
What you’ll need
- A Modula account — sign up for free
- An assistant that supports remote MCP servers: each guide says which plans of that service do
Reviewing in the editor
When your assistant opens a block or a document in the Modula editor, you can change it there. Your changes are kept as you make them, and the bar at the bottom tells you whether the file in the chat has them. Save sends your changes to the chat and keeps the editor open; Close closes it, and when the chat does not have your latest changes it asks whether to save and close, close without saving, or keep editing. After a save your assistant shows you the updated document.
Continuing a document
To continue working on a Modula document, give its HTML file contents to your assistant. After editing, the assistant returns the complete file as an attachment for you to save or download. The document tools do not read local file paths or fetch URLs, and Modula keeps only a temporary, encrypted working copy of a document, for a day after its last use: the file is your copy.
For developers: how the connection works
Modula exposes a Model Context Protocol (MCP) server at:
https://modula.dev/mcp It uses the Streamable HTTP transport — a single HTTPS endpoint that accepts POST requests, supported by all major AI clients.
The server uses OAuth 2.1 with PKCE. The first time your AI calls a Modula tool, it opens a browser window to complete the Modula login flow. Once you sign in and grant permission, the connection is established; subsequent sessions use a refresh token automatically.
What the AI can do once connected
| Tool | What it does |
|---|---|
get_schema_instructions | Returns the instructions for building a kind of page (a lesson, a presentation, …) from blocks |
list_types | Returns the block types available to you, with their variants |
design_document | Creates a Modula document, a single block included, or changes its structure: the blocks it holds (a text, a gallery, panels holding other blocks, …), their order, and the exact form of the content of each. Modula keeps a temporary working copy of the document (for a day after its last use), so your assistant sends only its changes |
write_document | Writes the content of the blocks of a document; an open editor shows each change as it comes |
edit_document | Opens a document in an editor for you, where your changes are saved as you make them and you download its file |
get_document | Returns the complete, updated file of a document as an attachment, ready to save and reopen in the Modula editor; or a page with its blocks in your own layout; or a SCORM package, ready to upload to an LMS; or its blocks as HTML and their one script, to embed them in your site |
search | Finds images, videos and other media with their credits, and the coordinates of places, for the blocks of a document |
get_theming_instructions | Returns the design tokens of the blocks (colours, block box, fonts), which the AI sets in a document’s theme or as CSS custom properties in a page |
submit_support_ticket | Sends a support ticket on your behalf |