Doubao MCP AI Server
Provides MCP interfaces for AI text-to-image, image-to-video, and text-to-video generation using the Doubao API.
README
Doubao MCP AI Server
本项目基于 FastMCP 框架,提供 AI 文生图、图生视频、文生视频等多种 AI 能力的 MCP 服务接口,适用于自动化、AI 助手、智能内容生成等场景。
功能简介
- 文本生成图片(文生图)
- 图片生成视频(图生视频)
- 文本生成视频(文生视频)
- 支持 API 密钥动态配置
- 支持多种模型和参数灵活调用
运行 MCP 服务器
1. 构建 Docker 镜像
docker build -t doubao-mcp-ai-server .
2. 启动 Docker 容器
docker rm -f doubao-mcp-ai-server; docker run -d -p 8000:8000 --name doubao-mcp-ai-server doubao-mcp-ai-server
容器启动后,MCP 服务将监听 0.0.0.0:8000,主机可通过 8000 端口访问。
3. 运行前请设置 API_KEY
服务启动后,请先通过 set_api_key 工具设置豆包 API 密钥,否则无法正常调用 AI 能力。
4. MCP 客户端配置示例
{
"mcpServers": {
"doubao_mcp_ai_server": {
"url": "https://127.0.0.1/sse",
"type": "sse"
}
}
}
说明:如需公网访问,可使用 ngrok、frp 等工具将本地 8000 端口映射到公网。
依赖说明
- Python 3.10
- FastMCP
- openai
- requests
主要文件说明
doubao_mcp_ai_server.py:主服务代码,定义了所有 AI 工具和接口requirements.txt:依赖包列表Dockerfile:Docker 镜像构建文件
其他
如需自定义模型、API 密钥或扩展功能,请参考代码注释进行修改。
如有问题欢迎反馈。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.