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

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 list to verify Modula appears in the list of active servers.
  • Run claude mcp remove modula to 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.
Modula is an experimental SaaS platform for distributing Web Components.
If what you found on this site sounds interesting, please reach out to us at info@chialab.it while we are setting up the platform.