mcp-integration-with-nova-canvas
An implementation of the Model Context Protocol integrated with Amazon Nova Canvas for image generation
pinned to #95623c9updated 2 months ago
Ask your AI client: “install mcps/mcp-integration-with-nova-canvas”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install mcps/mcp-integration-with-nova-canvasmetahub onboarded this repo on the author's behalf.
If you own github.com/awslabs/mcp on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
9,424
Last commit
2 months ago
Latest release
published
- #aws
- #mcp
- #mcp-client
- #mcp-clients
- #mcp-host
- #mcp-server
- #mcp-servers
- #mcp-tools
- #modelcontextprotocol
Automated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.95623c9· 2 months ago
Behavioral checks haven't run yet: the sandbox couldn't execute this artifact (it may need credentials we don't provide, or an unsupported build). An environment limit, not a verdict.
Select a category above to see its individual checks.
Release history
1- releasecurrent95623c9pass2 months ago
Contents
MCP Integration with Amazon Nova Canvas
This repository outlines a basic implementation of the Model Context Protocol integration with Amazon Nova Canvas for image generation
Overview
There are two parts to this implementation:
- The
user_interfaces/image_generator_st.pyfile, which handles the Streamlit/User Interface for the image generator - The
client_server.pyfile, which handles the MCP client and server implementation
The exact MCP server code leveraged can be found in the src/nova-canvas-mcp-server folder.
Architecture
The implementation follows this flow:
- A Streamlit UI provides the user interface for image generation
- The UI communicates with a FastAPI server
- The FastAPI server uses the MCP client to communicate with the Nova Canvas MCP server
- The Nova Canvas MCP server interacts with Amazon Bedrock to generate images
- The generated images are returned to the UI for display
Setup
Prerequisites
- The uv package manager
- AWS Account with Bedrock access and proper IAM permissions - Getting Started with Amazon Bedrock
- Access to the Amazon Nova Canvas and Amazon Nova Micro model (optional for prompt improvement) in Bedrock
Installation
- Clone the repository.
git clone https://github.com/awslabs/mcp.git
- Navigate to the sample directory and copy the .env.example file to .env and add your AWS credentials.
cd mcp/samples/mcp-integration-with-nova-canvas
cp .env.example .env
- Open two different terminals and install the dependencies in each.
uv sync
then activate the virtual environment
source .venv/bin/activate
- In one of the terminals, run the FastAPI server
uvicorn clients.client_server:app --reload
- In the other terminal, run the Streamlit app
streamlit run user_interfaces/image_generator_st.py
- The image generator should now be running on http://localhost:8501/
Usage
- Enter a text prompt describing the image you want to generate
- Optionally, add a negative prompt to specify what you don't want in the image
- Customize image parameters (dimensions, quality, etc.)
- For color-guided generation, select colors from the color picker
- Click "Generate Image" to create your image
- View the generated image and save it if desired
Troubleshooting
Logs are available in the terminal where you ran the FastAPI server, outlining various steps and actions taken by the server.
If you see an error about boto3 or streamlit not being found, it is likely because you did not activate the virtual environment:
uv sync
source .venv/bin/activate
Reviews
No reviews yet. Be the first.
Related
Github Mcp Server
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Context7
Up-to-date code docs for any prompt
Playwright Mcp
Playwright Tools for MCP
mh install mcps/mcp-integration-with-nova-canvas