Skip to main content

An AWS Labs Model Context Protocol (MCP) server for Amazon Nova Canvas

Project description

Amazon Nova Canvas MCP Server

⚠️ DEPRECATION NOTICE: This server is deprecated and will no longer receive updates. Please use bedrock-image-mcp-server instead, which includes all Nova Canvas tools plus Stable Diffusion 3.5, upscaling, and image editing. See the migration guide for details.

smithery badge

MCP server for generating images using Amazon Nova Canvas

Features

Text-based image generation

  • Create images from text prompts with generate_image
  • Customizable dimensions (320-4096px), quality options, and negative prompting
  • Supports multiple image generation (1-5) in single request
  • Adjustable parameters like cfg_scale (1.1-10.0) and seeded generation

Color-guided image generation

  • Generate images with specific color palettes using generate_image_with_colors
  • Define up to 10 hex color values to influence the image style and mood
  • Same customization options as text-based generation

Workspace integration

  • Images saved to user-specified workspace directories with automatic folder creation

AWS authentication

  • Uses AWS profiles for secure access to Amazon Nova Canvas services

Prerequisites

  1. Install uv from Astral or the GitHub README
  2. Install Python using uv python install 3.10
  3. Set up AWS credentials with access to Amazon Bedrock and Nova Canvas
    • You need an AWS account with Amazon Bedrock and Amazon Nova Canvas enabled
    • Configure AWS credentials with aws configure or environment variables
    • Ensure your IAM role/user has permissions to use Amazon Bedrock and Nova Canvas

Installation

Kiro Cursor VS Code
Add to Kiro Install MCP Server Install on VS Code

Configure the MCP server in your MCP client configuration (e.g., for Kiro, edit ~/.kiro/settings/mcp.json):

{
  "mcpServers": {
    "awslabs.nova-canvas-mcp-server": {
      "command": "uvx",
      "args": ["awslabs.nova-canvas-mcp-server@latest"],
      "env": {
        "AWS_PROFILE": "your-aws-profile",
        "AWS_REGION": "us-east-1",
        "FASTMCP_LOG_LEVEL": "ERROR"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Windows Installation

For Windows users, the MCP server configuration format is slightly different:

{
  "mcpServers": {
    "awslabs.nova-canvas-mcp-server": {
      "disabled": false,
      "timeout": 60,
      "type": "stdio",
      "command": "uv",
      "args": [
        "tool",
        "run",
        "--from",
        "awslabs.nova-canvas-mcp-server@latest",
        "awslabs.nova-canvas-mcp-server.exe"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "AWS_PROFILE": "your-aws-profile",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

or docker after a successful docker build -t awslabs/nova-canvas-mcp-server .:

# fictitious `.env` file with AWS temporary credentials
AWS_ACCESS_KEY_ID=ASIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_SESSION_TOKEN=AQoEXAMPLEH4aoAH0gNCAPy...truncated...zrkuWJOgQs8IZZaIv2BXIa2R4Olgk
  {
    "mcpServers": {
      "awslabs.nova-canvas-mcp-server": {
        "command": "docker",
        "args": [
          "run",
          "--rm",
          "--interactive",
          "--env",
          "AWS_REGION=us-east-1",
          "--env",
          "FASTMCP_LOG_LEVEL=ERROR",
          "--env-file",
          "/full/path/to/file/above/.env",
          "awslabs/nova-canvas-mcp-server:latest"
        ],
        "env": {},
        "disabled": false,
        "autoApprove": []
      }
    }
  }

NOTE: Your credentials will need to be kept refreshed from your host

Installing via Smithery

To install Amazon Nova Canvas MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @awslabs/nova-canvas-mcp-server --client claude

AWS Authentication

The MCP server uses the AWS profile specified in the AWS_PROFILE environment variable. If not provided, it defaults to the "default" profile in your AWS configuration file.

"env": {
  "AWS_PROFILE": "your-aws-profile",
  "AWS_REGION": "us-east-1"
}

Make sure the AWS profile has permissions to access Amazon Bedrock and Amazon Nova Canvas. The MCP server creates a boto3 session using the specified profile to authenticate with AWS services. Your AWS IAM credentials remain on your local machine and are strictly used for using the Amazon Bedrock model APIs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awslabs_nova_canvas_mcp_server-1.0.15.tar.gz (108.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awslabs_nova_canvas_mcp_server-1.0.15-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file awslabs_nova_canvas_mcp_server-1.0.15.tar.gz.

File metadata

File hashes

Hashes for awslabs_nova_canvas_mcp_server-1.0.15.tar.gz
Algorithm Hash digest
SHA256 e476cca40b74ad9ce613f431685168bc995c474202eac40fe25f0356aeffe8bf
MD5 33c882510f84028e048a9477220b6aa0
BLAKE2b-256 51fd964c782a843c24d2cf83eb25b2ff69ca579aa640b9bf3bd78c4c1cc06c25

See more details on using hashes here.

Provenance

The following attestation bundles were made for awslabs_nova_canvas_mcp_server-1.0.15.tar.gz:

Publisher: release.yml on awslabs/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file awslabs_nova_canvas_mcp_server-1.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for awslabs_nova_canvas_mcp_server-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 dce3a902c8643a918b1c920ca19710952db5f77ea642f25c3424c448635ed308
MD5 62b7ef4a27d13471716df760e298f5ac
BLAKE2b-256 04a676daf1c1b01f21fca1c151649a3444c304797ddd93b0f5b03cee85ec3706

See more details on using hashes here.

Provenance

The following attestation bundles were made for awslabs_nova_canvas_mcp_server-1.0.15-py3-none-any.whl:

Publisher: release.yml on awslabs/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page