hedra-mcp-server
Enables browsing Hedra's model catalog and managing AI generation jobs, including submitting, polling, and uploading files, through MCP clients.
README
hedra-mcp-server
An MCP (Model Context Protocol) server for the Hedra v3 API — browse Hedra's model catalog (Seedance, Veo, Kling, GPT Image, Hedra Avatar, ElevenLabs, and more) and submit, poll, and manage generation jobs, all from an MCP client like Claude.
Built against Hedra's public OpenAPI spec (https://www.hedra.com/docs/openapi-v3.json) but not tested against the live API — the environment that built this had no network access to api.hedra.com. Test it against your real key before relying on it (see "Try it" below).
What it does
14 tools across 4 areas:
Models — hedra_list_models, hedra_get_model, hedra_get_model_input_schema, hedra_list_model_voices, hedra_estimate_cost
Jobs — hedra_submit_job, hedra_get_job, hedra_get_job_status, hedra_wait_for_job, hedra_list_jobs, hedra_list_model_jobs
Files — hedra_upload_file (from a local path, a remote URL, or inline base64)
Billing — hedra_get_balance, hedra_get_usage
Not covered (can be added later if you need them): webhook management, log drains, API key rotation. These are account-admin operations rather than day-to-day generation workflow, so they were left out to keep the initial tool surface focused.
Setup
-
Get a Hedra API key. You need a paid Hedra plan. Go to https://www.hedra.com/develop/api-keys, generate a key (format
<key_id>:<secret>), and fund the API wallet at https://www.hedra.com/develop/billing — it starts at $0.00 and is separate from Hedra Studio credits. -
Install dependencies and build:
npm install npm run build -
Set your API key:
export HEDRA_API_KEY="your_key_id:your_secret"
Try it locally (stdio)
This is the easiest way to test — no deployment needed. Works with Claude Code, Claude Desktop, or any MCP client that can launch a local process.
npm start
Claude Code / Claude Desktop config (add to your MCP servers config):
{
"mcpServers": {
"hedra": {
"command": "node",
"args": ["/absolute/path/to/hedra-mcp-server/dist/index.js"],
"env": { "HEDRA_API_KEY": "your_key_id:your_secret" }
}
}
}
Sanity-check before anything else
Once connected, ask your MCP client to call hedra_get_balance. If that returns your real balance, auth is wired correctly. Then try hedra_list_models with modality: "VIDEO" to confirm the catalog loads.
Deploy remotely (for Claude.ai as a custom connector)
Claude.ai's web/mobile app needs a live HTTPS endpoint — it can't launch a local process. Deploy this server somewhere with a public URL, then add it as a custom connector.
-
Deploy to any Node host (Fly.io, Render, Railway, a VPS, etc.). Set the environment variables:
HEDRA_API_KEY=your_key_id:your_secretTRANSPORT=httpPORT=3000(or whatever your host expects)
Start command:
npm run build && npm run start:http -
Verify it's up:
curl https://your-deployed-host/healthshould return{"status":"ok","server":"hedra-mcp-server"}. -
Add it in Claude.ai: Settings → Connectors → Add custom connector → enter
https://your-deployed-host/mcpas the URL.
⚠️ Security note: this server has no built-in authentication on the /mcp endpoint beyond the Hedra key baked into its environment — anyone who can reach the URL can spend your Hedra balance. Put it behind your host's access controls (IP allowlist, a reverse-proxy auth layer, etc.) if it's reachable from the open internet, especially since it's tied to a real prepaid wallet.
Typical workflow
1. hedra_list_models(modality="VIDEO") → find seedance-20's id
2. hedra_get_model_input_schema("seedance-20") → see required fields, enums
3. hedra_upload_file(file_path="./start.jpg") → get a handle url (if using image-to-video)
4. hedra_estimate_cost("seedance-20", {...}) → confirm price before spending
5. hedra_submit_job("seedance-20", {...}) → returns job_id
6. hedra_wait_for_job(job_id) → blocks until done, returns outputs[].url
Project structure
src/
index.ts # entry point, transport selection (stdio/http)
constants.ts # timeouts, page sizes, base URL
types.ts # TS types mirroring Hedra's API shapes + HedraApiError
services/
hedra-client.ts # typed fetch wrapper: auth, requests, pagination, uploads
format.ts # error formatting, JSON truncation, tool response helpers
schemas/
common.ts # shared Zod fragments (pagination, media refs, ids)
tools/
models.ts # catalog + schema + cost estimate tools
jobs.ts # submit/get/status/wait/list tools
files.ts # upload tool
billing.ts # balance/usage tools
test/
smoke.mjs # connects via stdio, lists tools, sanity-checks error handling
Development
npm run dev # tsx watch mode against src/index.ts (stdio)
npm run build # tsc -> dist/
node test/smoke.mjs # after building: verify tool registration + error handling
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。