topview-mcp-server

topview-mcp-server

Enables Claude to generate videos and images via TopView.ai's API, including text-to-video, image-to-video, text-to-image, and image editing.

Category
访问服务器

README

topview-mcp-server

MCP server exposing TopView.ai's video and image generation API as tools for Claude.

Setup

  1. Copy .env.example to .env and fill in your credentials (Account icon > API Settings on topview.ai):
TOPVIEW_API_KEY=...
TOPVIEW_UID=...
  1. Install and build:
npm install
npm run build

Tools

Uploading

All three return a fileId that the generation tools consume. Which one to use depends on where the file is and where this server runs:

  • topview_upload_base64use this by default. The client sends the file contents, so it works regardless of where the server runs. This is the one that makes drag-and-drop attachments work against a hosted deployment. Practical up to ~10 MB (base64 inflates payloads ~33%, and MCP clients cap message size).
  • topview_upload_url — the server downloads a public http(s) URL, then uploads it. Best for large files, or media that already lives on a CDN. URLs resolving to private, loopback, or link-local addresses are rejected.
  • topview_upload_file — reads a path on the server's own filesystem. Only works under the stdio transport, where server and client share a machine. Under the hosted HTTP transport the client's paths do not exist on the server and every call fails; use one of the two above.

Generation

  • topview_text_to_video_submit / topview_text_to_video_query
  • topview_image_to_video_submit / topview_image_to_video_query
  • topview_text_to_image_submit / topview_text_to_image_query
  • topview_image_edit_submit / topview_image_edit_query

Submit tools accept waitForCompletion (default true) to poll internally (every ~4s, up to 5 minutes) and return the finished asset, or false to return immediately with a taskId for manual polling via the matching query tool.

Registering with Claude Code

claude mcp add topview -- node "G:/07_ClaudeCode/topview-mcp-server/dist/index.js"

Registering with Claude Desktop

Add to claude_desktop_config.json (Settings > Developer > Edit Config), under mcpServers:

"topview": {
  "command": "node",
  "args": ["G:/07_ClaudeCode/topview-mcp-server/dist/index.js"]
}

Restart Claude Desktop completely (quit, not just close the window) for it to load.

Using it from Cowork (remote/hosted mode)

Cowork sessions run in the cloud and can't launch a local process on your machine — they can only reach an MCP server over the network. This repo ships a second entry point, src/httpServer.ts, that exposes the exact same tools over Streamable HTTP so it can be hosted and added as a custom connector.

  1. Deploy this repo to any Node host (Render, Railway, Fly.io, etc.):
    • Build command: npm install && npm run build
    • Start command: npm run start:http
    • Environment variables to set on the host: TOPVIEW_API_KEY, TOPVIEW_UID, and TOPVIEW_MCP_ACCESS_TOKEN (a long random secret — required, otherwise anyone who finds the URL can spend your TopView credits). The host usually sets PORT automatically.
  2. Once deployed you'll have a public URL, e.g. https://topview-mcp.onrender.com.
  3. In Claude, go to Settings > Connectors > Add a custom connector and fill in:
    • Nom: topview
    • URL du serveur MCP distant: https://topview-mcp.onrender.com/mcp?token=YOUR_SECRET (the ?token= must match TOPVIEW_MCP_ACCESS_TOKEN; leave the OAuth fields empty)
  4. It will then be available in every Cowork session, not just one project folder.

GET /healthz returns ok once the server is up, useful for checking a deploy succeeded.

Uploading files in hosted mode

A hosted server has no access to your machine's filesystem, so topview_upload_file cannot work there — a path like C:\Users\you\image.png simply does not exist inside the container, and no amount of path rewriting changes that. Use topview_upload_base64 (client sends the bytes) or topview_upload_url (server fetches a public URL) instead. Both are transport-agnostic and work in local mode too.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选