Molecule for AI agents

Set any coding agent up with molecule: the conventions command, the MCP server, and the package docs an agent reads.

Two ways to connect

A coding agent (Claude Code, Codex, Cursor, Gemini CLI, or the prompt-to-app builders Lovable and Bolt) can work with molecule two ways, and they compose: conventions in the repo tell it how molecule code is written, and the MCP server gives it tools to search packages, scaffold, and operate projects.

Write the conventions into your repo

agent init writes the molecule conventions and quickstart into the files your harness already reads. One command, idempotent:

mlcl agent init
  • AGENTS.md at the project root, the cross-harness standard every major agent reads.
  • .cursor/rules, .claude/skills, .gemini/extensions, .windsurf/rules, the harness-native equivalents where they exist.

After this, an agent that opens the project knows how to work with bonds, ClassMap styling, handler patterns, and migrations without any prompting.

Give it tools: the MCP server

Register the molecule MCP server with your harness (works with Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, Zed, and any MCP client):

mlcl mcp install

The agent then gets the full surface: search, scaffold, wire, deploy, sandbox, database, env, and the capability services (74 tools; the MCP page has the table). A hosted, no-install endpoint is also available at https://mcp.molecule.dev/mcp with the read-only discovery tools.

What the agent reads

  • Per-package docs: every installed package carries a README.md generated from source at node_modules/@molecule/<name>/README.md.
  • llms-full.txt: every package’s API, examples, and wiring in one document.
  • molecule://conventions: an MCP resource with the conventions (bonds, ClassMap, i18n, migrations) in one page.