gwanggo-mcp
by bill-950207
README.md
<div align="center">
# gwanggo-mcp
### Give your AI agent the power to generate images & video.
**MCP server + CLI for the [Gwanggo](https://gwanggo.ai?utm_source=github&utm_medium=mcp-readme) API — Seedream, Sora, Veo, Kling, GPT Image and 30+ more models behind one key.**
[](https://www.npmjs.com/package/gwanggo-mcp)
[](./LICENSE)
[](https://modelcontextprotocol.io)
Works with **Claude Code · Claude Desktop · Cursor · Codex** — anything that speaks MCP.
</div>
---
```
You: "우리 신제품 세럼 광고 이미지 만들어줘, 화장품 무드로"
Agent: [calls generate_image with seedream-5] → https://…/result.png
```
## Setup (2 minutes)
**1. Connect your account** (opens a browser approval — no password pasting):
```bash
npx gwanggo-mcp login
# or, after install:
gwanggo auth login
```
> New accounts get free credits: sign up at [gwanggo.ai](https://gwanggo.ai?utm_source=github&utm_medium=mcp-readme). You can also skip `login` and set `GWANGGO_API_KEY` (create one at **Dashboard → API keys**).
**2. Add to your agent:**
**Claude Code**
```bash
claude mcp add gwanggo -- npx -y gwanggo-mcp
```
**Claude Desktop / Cursor** (`claude_desktop_config.json` / `.cursor/mcp.json`)
```json
{
"mcpServers": {
"gwanggo": {
"command": "npx",
"args": ["-y", "gwanggo-mcp"]
}
}
}
```
**Codex CLI** (`~/.codex/config.toml`)
```toml
[mcp_servers.gwanggo]
command = "npx"
args = ["-y", "gwanggo-mcp"]
```
To pass the key explicitly instead of `login`, add `"env": { "GWANGGO_API_KEY": "gwk_..." }`.
## Tools
| Tool | What it does |
| --- | --- |
| `list_models` | 35+ image/video models with credit costs and per-model options |
| `generate_image` | Text→image / image edit. Waits for completion, returns the URL |
| `generate_video` | Text→video / image→video (Seedance 2.0, Kling 3.0, Veo 3.1, Sora 2 …) |
| `get_task` | Check a previous generation by id |
| `get_credits` | Remaining credit balance |
Failed generations are **auto-refunded** server-side.
## CLI usage
The same binary doubles as a CLI:
```bash
gwanggo auth login
gwanggo models
gwanggo generate image "neon alley cat, cinematic" --model gpt-image-2 --quality high
gwanggo generate video "waves crashing at dawn" --model seedance-2.0 --resolution 720p --duration 5 --generate-audio
gwanggo me # account and credits
gwanggo task <id> # check status
```
The `gwanggo` commands reuse the account saved by `gwanggo auth login`; no API-key
environment variable is required. `GWANGGO_API_KEY` remains available for CI and
other non-interactive environments.
## How it works
Thin client over the public [Gwanggo /v1 REST API](https://github.com/bill-950207/gwanggo-studio#-the-api-underneath) — the same API that powers the open-source [Gwanggo Studio](https://github.com/bill-950207/gwanggo-studio). Your key is stored at `~/.config/gwanggo/config.json` (0600) and sent only as a Bearer token. A browser-login key takes precedence over `GWANGGO_API_KEY`, so a stale environment key cannot override a newly approved login. In CI, where no login file exists, `GWANGGO_API_KEY` is used.
## License
[MIT](./LICENSE)
TDQS
A4.2/5.0
Scored across 5 tools
Disambiguation5/5
Each tool serves a distinct function: generating images, generating videos, checking credits, checking task status, and listing models. No overlaps or ambiguity.
Naming Consistency5/5
All tool names follow a consistent verb_noun pattern (generate_image, generate_video, get_credits, get_task, list_models), making predictions easy.
Tool Count5/5
With 5 tools, the set covers the core workflow for an AI media generation service without being too sparse or excessive.
Completeness4/5
The surface covers model discovery, generation for both image and video, credit tracking, and task status. Missing a cancel/delete tool is a minor gap but not critical.
Maintenance
ActivityMaintained
ResponsivenessNo issues