Professional creative software suite.
## Affinity MCP Server: Professional Design Suite The **Affinity MCP Server** integrates Affinity's professional design applications directly into Google Antigravity, enabling AI assistants to work with Affinity Designer, Photo, and Publisher files programmatically. This integration brings professional design capabilities to your development workflow as a powerful Adobe alternative. ### Why Affinity MCP? - **Professional Tools**: Access industry-grade vector, raster, and publishing tools without subscription fees - **Native File Access**: Read and manipulate Affinity native files alongside common formats - **Asset Pipeline**: Extract layers, artboards, and assets from design files for development use - **Cross-Platform**: Work with files from Affinity apps across Mac, Windows, and iPad - **High Performance**: Process large design files efficiently with optimized file handling ### Key Features #### 1. File Analysis ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Analyze this Affinity Designer file and list all artboards with their dimensions" }], tools=[{ "name": "affinity_analyze", "description": "Analyze Affinity files" }] ) ``` #### 2. Asset Export ```python # Export assets from files response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Export all slices from this Affinity Designer file as PNG and SVG" }], tools=[{"name": "affinity_export", "description": "Export design assets"}] ) ``` #### 3. Layer Extraction ```python # Extract layer information response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Extract all text layers with their font specifications and colors" }], tools=[{"name": "affinity_layers", "description": "Extract layer data"}] ) ``` #### 4. Format Conversion ```python # Convert between formats response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert this Affinity Photo file to PSD format preserving layers" }], tools=[{"name": "affinity_convert", "description": "Convert file formats"}] ) ``` ### Configuration ```json { "mcpServers": { "affinity": { "command": "npx", "args": ["-y", "@anthropic/mcp-affinity"], "env": { "AFFINITY_INSTALL_PATH": "/Applications/Affinity Designer.app" } } } } ``` ### Use Cases **Asset Generation**: Automatically export web and mobile assets from Affinity design files. **Design Documentation**: Extract design specifications and generate style documentation. **Batch Processing**: Process multiple design files for asset extraction or format conversion. **Design-Code Sync**: Keep development assets synchronized with the latest design file exports. The Affinity MCP Server brings professional design file processing directly into your development workflow, enabling seamless integration with Affinity's creative suite.
{
"mcpServers": {
"affinity": {}
}
}