What is the Ditto MCP server?
The Ditto MCP (Model Context Protocol) server connects AI coding agents to your team’s content in Ditto. It gives agents access to your style guide rules and existing text so they can write on-brand copy and reuse existing strings when generating code. With the MCP server, your AI coding agent can:- Follow your style guide rules when writing UI text, so generated copy is consistent with your team’s guidelines.
- Search and reuse existing text from Ditto projects and the component library, so agents reference approved text instead of generating new ones.
How it works
The Ditto MCP server runs locally and exposes two tools to any MCP-compatible client:get_styleguide_rulesfetches your workspace and project-level style guide rules from Ditto.search_ditto_textsearches your Ditto projects and component library for existing text items.
CLAUDE.md or .cursorrules file telling the agent to check Ditto’s style guides before writing any user-facing text. See Example use cases for more.
Project configuration
You can optionally scope MCP tool calls to specific Ditto projects by adding aditto/config.yaml file in your project root: