Skip to content

Claude Integration

This guide walks through setting up floimg as an MCP tool for Claude.

Terminal window
npm install -g @teamflojo/floimg-mcp

Edit your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Add floimg to the mcpServers section:

{
"mcpServers": {
"floimg": {
"command": "floimg-mcp",
"args": [],
"env": {
"FLOIMG_OUTPUT_DIR": "/Users/you/Pictures/floimg"
}
}
}
}

After saving the configuration, restart Claude Desktop. You should see floimg listed in the tools menu.

Ask Claude to generate an image:

“Create a pie chart showing browser market share: Chrome 65%, Safari 19%, Firefox 10%, Other 6%”

Claude will use floimg to generate the chart and show you the result.

Terminal window
npm install -g @teamflojo/floimg-mcp

Add to your Claude Code MCP configuration:

{
"mcpServers": {
"floimg": {
"command": "floimg-mcp"
}
}
}

Claude Code can now generate images during coding sessions:

“Generate a sequence diagram for the auth flow in this codebase and save it to docs/auth-flow.png”

Configure the MCP server behavior with environment variables:

VariableDescriptionDefault
FLOIMG_OUTPUT_DIRWhere to save imagesCurrent directory
AWS_ACCESS_KEY_IDFor S3 output-
AWS_SECRET_ACCESS_KEYFor S3 output-
AWS_REGIONFor S3 output-

Example configuration with environment:

{
"mcpServers": {
"floimg": {
"command": "floimg-mcp",
"env": {
"FLOIMG_OUTPUT_DIR": "/path/to/images",
"AWS_ACCESS_KEY_ID": "your-key",
"AWS_SECRET_ACCESS_KEY": "your-secret",
"AWS_REGION": "us-east-1"
}
}
}
}

For best results when asking Claude to generate images:

“Create a bar chart with these exact values: January: 120, February: 150, March: 180”

“Generate a flowchart and save it as flowchart.png”

“Create a line chart (not bar) showing the trend over time”

“Generate a pie chart with a dark background and teal accent color”

Ensure floimg-mcp is installed globally and in your PATH:

Terminal window
which floimg-mcp

Check that FLOIMG_OUTPUT_DIR exists and is writable.

Verify the output path in your configuration. Claude will tell you where the image was saved.