@agentmedia/mcp-server 0.1.0 → 0.1.1
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/.memory/cursor.json +3 -0
- package/.memory/memories.json +1 -0
- package/.memory/project.json +5 -0
- package/CLAUDE.md +7 -0
- package/README.md +114 -27
- package/package.json +24 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
package/CLAUDE.md
ADDED
package/README.md
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @agentmedia/mcp-server
|
|
2
2
|
|
|
3
|
-
MCP server for agent-media — generate UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.
|
|
3
|
+
MCP server for [agent-media](https://agent-media.ai) — generate AI UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
UGC for developers. Script in, video URL out — directly from your IDE.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
npm
|
|
9
|
-
```
|
|
7
|
+
[](https://www.npmjs.com/package/@agentmedia/mcp-server)
|
|
8
|
+
[](https://github.com/yuvalsuede/agent-media/blob/main/LICENSE)
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
## What It Does
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
Three tools that let AI agents generate UGC videos:
|
|
13
|
+
|
|
14
|
+
| Tool | Description |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `create_video` | Generate a UGC video from a script. Polls until complete, returns the video URL. |
|
|
17
|
+
| `list_actors` | Browse available AI actors — slugs, names, demographics. |
|
|
18
|
+
| `get_video_status` | Check a generation job's status, video URL, or error message. |
|
|
16
19
|
|
|
17
|
-
##
|
|
20
|
+
## Setup
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
### 1. Get an API Key
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
Sign up at [agent-media.ai](https://agent-media.ai) and generate an API key in Settings.
|
|
25
|
+
|
|
26
|
+
### 2. Configure Your IDE
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
#### Claude Code
|
|
26
29
|
|
|
27
30
|
Add to `~/.claude/settings.json`:
|
|
28
31
|
|
|
@@ -31,7 +34,7 @@ Add to `~/.claude/settings.json`:
|
|
|
31
34
|
"mcpServers": {
|
|
32
35
|
"agent-media": {
|
|
33
36
|
"command": "npx",
|
|
34
|
-
"args": ["@
|
|
37
|
+
"args": ["-y", "@agentmedia/mcp-server"],
|
|
35
38
|
"env": {
|
|
36
39
|
"AGENT_MEDIA_API_KEY": "ma_your_key_here"
|
|
37
40
|
}
|
|
@@ -40,29 +43,113 @@ Add to `~/.claude/settings.json`:
|
|
|
40
43
|
}
|
|
41
44
|
```
|
|
42
45
|
|
|
43
|
-
|
|
46
|
+
#### Cursor
|
|
44
47
|
|
|
45
|
-
|
|
48
|
+
Open Settings > MCP Servers > Add Server:
|
|
46
49
|
|
|
47
|
-
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"agent-media": {
|
|
53
|
+
"command": "npx",
|
|
54
|
+
"args": ["-y", "@agentmedia/mcp-server"],
|
|
55
|
+
"env": {
|
|
56
|
+
"AGENT_MEDIA_API_KEY": "ma_your_key_here"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
48
61
|
|
|
49
|
-
|
|
62
|
+
#### Windsurf
|
|
50
63
|
|
|
51
|
-
|
|
64
|
+
Open Settings > MCP > Add:
|
|
52
65
|
|
|
53
|
-
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"agent-media": {
|
|
69
|
+
"command": "npx",
|
|
70
|
+
"args": ["-y", "@agentmedia/mcp-server"],
|
|
71
|
+
"env": {
|
|
72
|
+
"AGENT_MEDIA_API_KEY": "ma_your_key_here"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### Global Install (Alternative)
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npm install -g @agentmedia/mcp-server
|
|
82
|
+
export AGENT_MEDIA_API_KEY=ma_your_key_here
|
|
83
|
+
agent-media-mcp
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Usage Examples
|
|
87
|
+
|
|
88
|
+
Once configured, ask your AI assistant:
|
|
89
|
+
|
|
90
|
+
> "Generate a 10-second UGC video with Sofia explaining why our product is great"
|
|
91
|
+
|
|
92
|
+
> "List available actors and create a product review video with an enthusiastic tone"
|
|
93
|
+
|
|
94
|
+
> "Check the status of job abc123"
|
|
95
|
+
|
|
96
|
+
The MCP server handles the API calls, polling, and returns the finished video URL.
|
|
97
|
+
|
|
98
|
+
## Tool Parameters
|
|
99
|
+
|
|
100
|
+
### create_video
|
|
101
|
+
|
|
102
|
+
| Parameter | Type | Description |
|
|
103
|
+
|---|---|---|
|
|
104
|
+
| `script` | string | Video script (50-3000 chars). Required unless `prompt` is set. |
|
|
105
|
+
| `prompt` | string | AI generates the script from this prompt. |
|
|
106
|
+
| `actor_slug` | string | Actor to use (from `list_actors`). |
|
|
107
|
+
| `tone` | string | `energetic`, `calm`, `confident`, `dramatic` |
|
|
108
|
+
| `music` | string | `chill`, `energetic`, `corporate`, `dramatic`, `upbeat` |
|
|
109
|
+
| `style` | string | Subtitle style — 17 options including `hormozi`, `bold`, `neon`, `fire` |
|
|
110
|
+
| `target_duration` | number | `5`, `10`, or `15` seconds |
|
|
111
|
+
| `aspect_ratio` | string | `9:16`, `16:9`, `1:1` |
|
|
112
|
+
| `allow_broll` | boolean | Include AI-generated B-roll footage |
|
|
113
|
+
| `template` | string | `product-review`, `testimonial`, `monologue`, `listicle`, etc. |
|
|
114
|
+
| `composition_mode` | string | `pip` for picture-in-picture |
|
|
115
|
+
| `webhook_url` | string | Async completion callback URL |
|
|
54
116
|
|
|
55
117
|
### list_actors
|
|
56
118
|
|
|
57
|
-
|
|
119
|
+
| Parameter | Type | Default | Description |
|
|
120
|
+
|---|---|---|---|
|
|
121
|
+
| `limit` | number | 20 | Max actors to return (max 200) |
|
|
122
|
+
| `offset` | number | 0 | Pagination offset |
|
|
58
123
|
|
|
59
124
|
### get_video_status
|
|
60
125
|
|
|
61
|
-
|
|
126
|
+
| Parameter | Type | Required | Description |
|
|
127
|
+
|---|---|---|---|
|
|
128
|
+
| `job_id` | string | Yes | Job ID from `create_video` |
|
|
62
129
|
|
|
63
130
|
## Environment Variables
|
|
64
131
|
|
|
65
132
|
| Variable | Required | Default | Description |
|
|
66
133
|
|---|---|---|---|
|
|
67
|
-
| `AGENT_MEDIA_API_KEY` | Yes | — | Your API key (ma_xxx format) |
|
|
68
|
-
| `AGENT_MEDIA_API_URL` | No |
|
|
134
|
+
| `AGENT_MEDIA_API_KEY` | Yes | — | Your API key (`ma_xxx` format) |
|
|
135
|
+
| `AGENT_MEDIA_API_URL` | No | Production API | Override the API base URL |
|
|
136
|
+
|
|
137
|
+
## Related Packages
|
|
138
|
+
|
|
139
|
+
| Package | Description |
|
|
140
|
+
|---|---|
|
|
141
|
+
| [`@agentmedia/sdk`](https://www.npmjs.com/package/@agentmedia/sdk) | TypeScript SDK for direct API integration |
|
|
142
|
+
| [`agent-media-cli`](https://www.npmjs.com/package/agent-media-cli) | CLI tool — generate videos from your terminal |
|
|
143
|
+
| [`@agentmedia/schema`](https://www.npmjs.com/package/@agentmedia/schema) | Shared schema — enums, types, Zod validation |
|
|
144
|
+
| [`agent-media`](https://pypi.org/project/agent-media/) | Python SDK |
|
|
145
|
+
|
|
146
|
+
## Links
|
|
147
|
+
|
|
148
|
+
- [Interactive API Docs](https://agent-media.ai/docs/api-reference)
|
|
149
|
+
- [OpenAPI Spec](https://agent-media.ai/openapi.json)
|
|
150
|
+
- [Website](https://agent-media.ai)
|
|
151
|
+
- [GitHub](https://github.com/yuvalsuede/agent-media)
|
|
152
|
+
|
|
153
|
+
## License
|
|
154
|
+
|
|
155
|
+
Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentmedia/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "MCP server for agent-media — generate AI UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"license": "Apache-2.0",
|
|
7
|
+
"homepage": "https://agent-media.ai/integrations",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/yuvalsuede/agent-media.git",
|
|
11
|
+
"directory": "packages/mcp-server"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mcp",
|
|
15
|
+
"model-context-protocol",
|
|
16
|
+
"claude-code",
|
|
17
|
+
"cursor",
|
|
18
|
+
"windsurf",
|
|
19
|
+
"ugc",
|
|
20
|
+
"video-generation",
|
|
21
|
+
"ai",
|
|
22
|
+
"developer-tools",
|
|
23
|
+
"ai-agent",
|
|
24
|
+
"talking-head",
|
|
25
|
+
"text-to-video",
|
|
26
|
+
"agent-media"
|
|
27
|
+
],
|
|
6
28
|
"publishConfig": {
|
|
7
29
|
"access": "public"
|
|
8
30
|
},
|
|
@@ -17,7 +39,7 @@
|
|
|
17
39
|
"dependencies": {
|
|
18
40
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
19
41
|
"zod-to-json-schema": "^3.25.0",
|
|
20
|
-
"@agentmedia/schema": "0.1.
|
|
42
|
+
"@agentmedia/schema": "0.1.1"
|
|
21
43
|
},
|
|
22
44
|
"devDependencies": {
|
|
23
45
|
"typescript": "^5.7.3"
|