@tube2vid/mcp 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +99 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.js +37 -0
- package/dist/server.js.map +1 -0
- package/package.json +69 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tube2Vid
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,100 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Tube2Vid MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/Tube2Vid/mcp/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/@tube2vid/mcp)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
|
|
7
|
+
A YouTube, TikTok and Instagram video downloader for AI agents. `@tube2vid/mcp` is a [Model Context Protocol](https://modelcontextprotocol.io) server that lets Claude Desktop, Claude Code, Cursor and any other MCP client download video, audio and images from YouTube, TikTok, Instagram, X, Reddit and 1,800+ other sites through the [Tube2Vid download API](https://tube2vid.com). Ask "save this TikTok as MP4" or "get the audio of this YouTube video as MP3" and the model queues the job, waits for it and hands back a download link.
|
|
8
|
+
|
|
9
|
+
## Tools
|
|
10
|
+
|
|
11
|
+
| Tool | What it does | Needs a key |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| `list_supported_platforms` | First-class platforms and their capabilities | no |
|
|
14
|
+
| `get_platform_health` | Live per-platform status | no |
|
|
15
|
+
| `get_account_usage` | Credit balance and job counts | yes |
|
|
16
|
+
| `submit_download_job` | Queue a download (`url`, `mode`, `format`, `quality`) | yes |
|
|
17
|
+
| `get_job_status` | Progress and result of a job | yes |
|
|
18
|
+
| `get_download_link` | Short-lived direct link to a finished file | yes |
|
|
19
|
+
|
|
20
|
+
## Setup
|
|
21
|
+
|
|
22
|
+
[Get an API key](https://tube2vid.com/pricing) with the `jobs:write`, `jobs:read` and `usage:read` scopes (the defaults). Use a separate key for MCP so you can revoke it on its own. Needs Node 18.17+.
|
|
23
|
+
|
|
24
|
+
### Claude Desktop
|
|
25
|
+
|
|
26
|
+
Add this to `claude_desktop_config.json` (Settings, Developer, Edit Config):
|
|
27
|
+
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"mcpServers": {
|
|
31
|
+
"tube2vid": {
|
|
32
|
+
"command": "npx",
|
|
33
|
+
"args": ["-y", "@tube2vid/mcp"],
|
|
34
|
+
"env": { "TUBE2VID_API_KEY": "tv_live_..." }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Claude Code
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
claude mcp add tube2vid --env TUBE2VID_API_KEY=tv_live_... -- npx -y @tube2vid/mcp
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Cursor
|
|
47
|
+
|
|
48
|
+
Add this to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"mcpServers": {
|
|
53
|
+
"tube2vid": {
|
|
54
|
+
"command": "npx",
|
|
55
|
+
"args": ["-y", "@tube2vid/mcp"],
|
|
56
|
+
"env": { "TUBE2VID_API_KEY": "tv_live_..." }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Any other client
|
|
63
|
+
|
|
64
|
+
Run `npx -y @tube2vid/mcp` (or `npm install -g @tube2vid/mcp`, then `tube2vid-mcp`) as a stdio server. The server is also listed in the [MCP registry](https://registry.modelcontextprotocol.io) as `io.github.Tube2Vid/mcp`.
|
|
65
|
+
|
|
66
|
+
## Configuration
|
|
67
|
+
|
|
68
|
+
| Variable | Default | |
|
|
69
|
+
| --- | --- | --- |
|
|
70
|
+
| `TUBE2VID_API_KEY` | none | Your `tv_live_...` key |
|
|
71
|
+
| `TUBE2VID_API_URL` | `https://tube2vid.com` | API origin |
|
|
72
|
+
| `MCP_TRANSPORT` | `stdio` | `http` serves Streamable HTTP on `POST /mcp` instead |
|
|
73
|
+
| `PORT` | `8000` | Port for `http` mode |
|
|
74
|
+
|
|
75
|
+
In `http` mode every caller shares the one configured key, so only expose it to clients you trust.
|
|
76
|
+
|
|
77
|
+
## Links
|
|
78
|
+
|
|
79
|
+
- [Tube2Vid](https://tube2vid.com): the online video downloader behind these tools
|
|
80
|
+
- [API documentation](https://tube2vid.com/docs) and the [OpenAPI spec](https://github.com/Tube2Vid/api)
|
|
81
|
+
- [Pricing and API keys](https://tube2vid.com/pricing)
|
|
82
|
+
- [Live platform status](https://tube2vid.com/status)
|
|
83
|
+
- Built on the [Tube2Vid TypeScript SDK](https://github.com/Tube2Vid/sdk); there is also a [`tube2vid` CLI](https://github.com/Tube2Vid/cli)
|
|
84
|
+
|
|
85
|
+
SDKs in other languages: [TypeScript](https://github.com/Tube2Vid/sdk), [Python](https://github.com/Tube2Vid/sdk-python), [Go](https://github.com/Tube2Vid/sdk-go), [Java](https://github.com/Tube2Vid/sdk-java), [C#](https://github.com/Tube2Vid/sdk-dotnet), [PHP](https://github.com/Tube2Vid/sdk-php), [Ruby](https://github.com/Tube2Vid/sdk-ruby), [Rust](https://github.com/Tube2Vid/sdk-rust), [Swift](https://github.com/Tube2Vid/sdk-swift).
|
|
86
|
+
|
|
87
|
+
## Develop
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
npm install
|
|
91
|
+
npm test # in-memory MCP client against a fake API
|
|
92
|
+
npm run dev # stdio, from source
|
|
93
|
+
npm run build # compiles to dist/
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
When you bump the version, update `package.json` and both versions in `server.json` together; the release workflow checks that they match the tag.
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
[MIT](LICENSE), Copyright (c) 2026 Tube2Vid.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { DEFAULT_BASE_URL, Tube2VidClient } from "@tube2vid/sdk";
|
|
3
|
+
import { createMcpExpressApp } from "@modelcontextprotocol/sdk/server/express.js";
|
|
4
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
|
+
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
6
|
+
import { createServer } from "./server.js";
|
|
7
|
+
const client = new Tube2VidClient({
|
|
8
|
+
baseUrl: process.env.TUBE2VID_API_URL || DEFAULT_BASE_URL,
|
|
9
|
+
apiKey: process.env.TUBE2VID_API_KEY
|
|
10
|
+
});
|
|
11
|
+
const port = Number(process.env.PORT ?? 8000);
|
|
12
|
+
const transportMode = process.env.MCP_TRANSPORT ?? "stdio";
|
|
13
|
+
if (transportMode === "http") {
|
|
14
|
+
const app = createMcpExpressApp({
|
|
15
|
+
host: "0.0.0.0",
|
|
16
|
+
allowedHosts: ["tube2vid.com", "www.tube2vid.com", "localhost", "127.0.0.1"]
|
|
17
|
+
});
|
|
18
|
+
app.post("/mcp", async (request, response) => {
|
|
19
|
+
const server = createServer(client);
|
|
20
|
+
const transport = new StreamableHTTPServerTransport({
|
|
21
|
+
sessionIdGenerator: undefined
|
|
22
|
+
});
|
|
23
|
+
try {
|
|
24
|
+
await server.connect(transport);
|
|
25
|
+
await transport.handleRequest(request, response, request.body);
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error("MCP request failed", error);
|
|
29
|
+
if (!response.headersSent) {
|
|
30
|
+
response.status(500).json({
|
|
31
|
+
jsonrpc: "2.0",
|
|
32
|
+
error: { code: -32603, message: "Internal server error" },
|
|
33
|
+
id: null
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
response.on("close", () => {
|
|
39
|
+
transport.close();
|
|
40
|
+
server.close();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
app.get("/mcp", (_request, response) => {
|
|
45
|
+
response.status(405).json({
|
|
46
|
+
jsonrpc: "2.0",
|
|
47
|
+
error: { code: -32000, message: "Method not allowed." },
|
|
48
|
+
id: null
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
app.listen(port, "0.0.0.0", (error) => {
|
|
52
|
+
if (error) {
|
|
53
|
+
console.error("Failed to start Tube2Vid MCP server", error);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
console.log(`Tube2Vid MCP Streamable HTTP listening on ${port}`);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const server = createServer(client);
|
|
61
|
+
const transport = new StdioServerTransport();
|
|
62
|
+
await server.connect(transport);
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,gBAAgB;IACzD,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;CACrC,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;AAC9C,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,OAAO,CAAC;AAE3D,IAAI,aAAa,KAAK,MAAM,EAAE,CAAC;IAC7B,MAAM,GAAG,GAAG,mBAAmB,CAAC;QAC9B,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,CAAC,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,CAAC;KAC7E,CAAC,CAAC;IAEH,GAAG,CAAC,IAAI,CAAC,MAAM,EAA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AC,CAAC,CAAC;IAEH,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,KAAa,EAAE,EAAE;QAC5C,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,CAAC,KAAK,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAAC;YAC5D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,6CAA6C,IAAI,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC;KAAM,CAAC;IACN,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC"}
|
package/dist/server.d.ts
ADDED
package/dist/server.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
const { version } = createRequire(import.meta.url)("../package.json");
|
|
5
|
+
export function createServer(client) {
|
|
6
|
+
const server = new McpServer({
|
|
7
|
+
name: "tube2vid",
|
|
8
|
+
version
|
|
9
|
+
});
|
|
10
|
+
server.tool("list_supported_platforms", "List Tube2Vid supported platforms and capabilities.", {}, async () => jsonToolResponse(await client.listPlatforms()));
|
|
11
|
+
server.tool("get_platform_health", "Get live platform health and provider status.", {}, async () => jsonToolResponse(await client.getPlatformHealth()));
|
|
12
|
+
server.tool("get_account_usage", "Get current credit balance and usage summary.", {}, async () => jsonToolResponse(await client.getUsage()));
|
|
13
|
+
server.tool("submit_download_job", "Submit a media download job. Poll get_job_status until it is completed, then call get_download_link.", {
|
|
14
|
+
url: z.string().url(),
|
|
15
|
+
mode: z.enum(["auto", "video", "audio", "gallery"]).default("auto"),
|
|
16
|
+
format: z.string().default("mp4"),
|
|
17
|
+
quality: z.string().default("best")
|
|
18
|
+
}, async (input) => jsonToolResponse(await client.submitAuthenticatedJob(input)));
|
|
19
|
+
server.tool("get_job_status", "Get status for a submitted Tube2Vid job.", {
|
|
20
|
+
jobId: z.string()
|
|
21
|
+
}, async ({ jobId }) => jsonToolResponse(await client.getJobStatus(jobId)));
|
|
22
|
+
server.tool("get_download_link", "Get a short-lived direct link to a completed job's file.", {
|
|
23
|
+
jobId: z.string()
|
|
24
|
+
}, async ({ jobId }) => jsonToolResponse({ jobId, url: await client.getDownloadLink(jobId) }));
|
|
25
|
+
return server;
|
|
26
|
+
}
|
|
27
|
+
function jsonToolResponse(data) {
|
|
28
|
+
return {
|
|
29
|
+
content: [
|
|
30
|
+
{
|
|
31
|
+
type: "text",
|
|
32
|
+
text: JSON.stringify(data, null, 2)
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAwB,CAAC;AAE7F,MAAM,UAAU,YAAY,CAAC,MAAsB;IACjD,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;QAC3B,IAAI,EAAE,UAAU;QAChB,OAAO;KACR,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CACT,0BAA0B,EAC1B,qDAAqD,EACrD,EAAE,EACF,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,MAAM,MAAM,CAAC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AAK,EAAE,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,CAC3F,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAa;IACrC,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAe;gBACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;aACpC;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tube2vid/mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Tube2Vid MCP server: let Claude, Cursor and other AI tools download video and audio from YouTube, TikTok, Instagram and 1,800+ sites.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://tube2vid.com",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Tube2Vid/mcp.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/Tube2Vid/mcp/issues"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"tube2vid",
|
|
16
|
+
"mcp",
|
|
17
|
+
"mcp server",
|
|
18
|
+
"model context protocol",
|
|
19
|
+
"claude",
|
|
20
|
+
"cursor",
|
|
21
|
+
"ai tools",
|
|
22
|
+
"youtube downloader",
|
|
23
|
+
"tiktok downloader",
|
|
24
|
+
"instagram downloader",
|
|
25
|
+
"video downloader"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"main": "dist/index.js",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"bin": {
|
|
37
|
+
"tube2vid-mcp": "dist/index.js"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"README.md",
|
|
42
|
+
"LICENSE"
|
|
43
|
+
],
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18.17"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"dev": "tsx src/index.ts",
|
|
49
|
+
"build": "tsc -p tsconfig.json",
|
|
50
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
51
|
+
"start": "node dist/index.js",
|
|
52
|
+
"prepublishOnly": "npm run build",
|
|
53
|
+
"test": "node --import tsx --test src/*.test.ts"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@modelcontextprotocol/sdk": "^1.11.0",
|
|
57
|
+
"@tube2vid/sdk": "^1.1.0",
|
|
58
|
+
"zod": "^3.24.4"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@types/node": "^22.15.3",
|
|
62
|
+
"tsx": "^4.19.4",
|
|
63
|
+
"typescript": "^5.8.3"
|
|
64
|
+
},
|
|
65
|
+
"author": "Tube2Vid (https://tube2vid.com)",
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public",
|
|
68
|
+
"provenance": true
|
|
69
|
+
},
|
|
70
|
+
"mcpName": "io.github.Tube2Vid/mcp"
|
|
71
|
+
}
|