Connect Claude Code, Codex, Cursor and VS Code
Add Hue AI as a remote MCP server in your coding tool, sign in once, and you can generate images and video without leaving your editor or terminal.
Why connect a coding tool?
Useful when you’re building something that needs visuals: placeholder images for a prototype, a hero image for a landing page, icons, product shots or a demo clip. Ask the agent in plain language, and the file is generated with your Hue AI account and ready to drop into the project.
Claude Code
- On the Connect page, choose Coding agent and copy the Claude Code command.
- Run it in your terminal, in your project folder. Claude Code adds Hue AI and asks you to sign in.
- If it doesn’t ask, run this, select hue-ai and sign in:
/mcpThe command adds Hue AI to the folder where you ran it. Run it again in each project, or add Hue AI with Claude Code’s user scope option so it works in every folder.
Codex
- Add Hue AI as a remote MCP server in Codex’s MCP settings, named hue-ai, with the server URL from the Connect page. Or press Copy the prompt on the Connect page and send it to Codex.
- Sign in:
codex mcp login hue-aiCursor
- On the Connect page, choose Cursor and press Add to Cursor. Cursor opens with Hue AI filled in.
- Confirm Install.
- Cursor opens the Hue AI sign-in. Press Allow access.
VS Code and other apps
Easiest: on the Connect page, choose Coding agent, press Copy the prompt and send it to your agent. It adds Hue AI and tells you how to sign in.
Or add it yourself:
- Copy the server URL from the Connect page.
- In your app’s MCP settings, add a remote HTTP server named hue-ai with that URL.
- Your app opens the Hue AI sign-in. Press Allow access, then go back to the editor.
Try asking your agent
Use Hue AI to generate a 1200x630 hero image for a coffee-shop landing page, warm morning light, and save it to /public/hero.jpg.Use Hue AI to make three app icon variations of a mushroom, flat style, and show me the cost first.Good to know
- Generations use the same credits as the app, at the same prices. Ask the agent for the price first if you want to check before spending.
- Everything made this way also appears in your Media library.
- If your sign-in expires, run the sign-in step again. Nothing else needs to change.
It didn’t work?
Make sure your tool supports remote HTTP MCP servers (not just local ones), and that the URL is pasted exactly as shown on the Connect page. If the sign-in window never appears, check your browser didn’t block the popup.