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 component library directly from your terminal.
What you’ll need
- Claude Code installed on your machine
- A Modula account — sign up here
Option A — Add via CLI (recommended)
Open a terminal and run:
claude mcp add modula --transport http https://mcp.modula.dev/mcp Claude Code will prompt you to authenticate with Modula the first time you use a Modula tool in a session.
Option B — Add via configuration file
You can also add Modula manually to your Claude Code configuration file at ~/.claude.json:
{
"mcpServers": {
"modula": {
"type": "http",
"url": "https://mcp.modula.dev/mcp"
}
}
} To scope the connection to a single project, add a .claude.json file at the root of your project with the same content.
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 search, select, and assemble the right components.
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 manage multiple projects or share settings with your team.