Connect Modula to Claude Code
Claude Code is Anthropic’s official CLI for Claude. It supports MCP (Model Context Protocol) servers natively, so you can give it access to Modula’s blocks directly from your terminal.
What you’ll need
- Claude Code installed on your machine
- A Modula account — sign up for free
Option A — Add via CLI (recommended)
Open a terminal and run:
claude mcp add --transport http modula https://modula.dev/mcp By default the server is available in the current project only. To use it in every project, add --scope user; to share it with your team through the repository, add --scope project.
Then start claude, type /mcp, select modula and choose Authenticate: your browser opens on the Modula login. Sign in and grant permission.
Option B — Add via configuration file
To share the connection with your team, create a .mcp.json file at the root of your project and commit it:
{
"mcpServers": {
"modula": {
"type": "http",
"url": "https://modula.dev/mcp"
}
}
} Claude Code asks for approval the first time it finds a project server, then you authenticate with /mcp as above.
Using Modula in a session
Once connected, Modula tools are available in any Claude Code session. Try:
> Using Modula, create a lesson on photosynthesis with a diagram placeholder, a short explanation, and a quiz. Claude Code will call the Modula tools automatically to write each block and assemble the page.
Tips
- Run
claude mcp listto verify Modula appears in the list of active servers. - Run
claude mcp remove modulato disconnect at any time. - The CLI option (Option A) is simpler; the config file option (Option B) is better if you share settings with your team.