# Taisly MCP server

> Publishes short-form videos to TikTok, Instagram Reels, YouTube Shorts, X, and Facebook from an AI agent workflow.

- Repository: https://github.com/taisly/agent
- Page: https://hostedmcp.org/servers/taisly/agent
- Transport: stdio, remote
- Stars: 222
- License: MIT
- Latest version: 0.2.10

## Install

### Claude Code

```sh
claude mcp add --env 'TAISLY_API_KEY=<YOUR_TAISLY_API_KEY>' agent -- npx -y @taisly/agent
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "agent": {
      "command": "npx",
      "args": [
        "-y",
        "@taisly/agent"
      ],
      "env": {
        "TAISLY_API_KEY": "<YOUR_TAISLY_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "agent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@taisly/agent"
      ],
      "env": {
        "TAISLY_API_KEY": "<YOUR_TAISLY_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"agent","type":"stdio","command":"npx","args":["-y","@taisly/agent"],"env":{"TAISLY_API_KEY":"<YOUR_TAISLY_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "agent": {
      "command": "npx",
      "args": [
        "-y",
        "@taisly/agent"
      ],
      "env": {
        "TAISLY_API_KEY": "<YOUR_TAISLY_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add agent --env 'TAISLY_API_KEY=<YOUR_TAISLY_API_KEY>' -- npx -y @taisly/agent
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.agent]
command = "npx"
args = ["-y", "@taisly/agent"]

[mcp_servers.agent.env]
TAISLY_API_KEY = "<YOUR_TAISLY_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'TAISLY_API_KEY=<YOUR_TAISLY_API_KEY>' agent npx -- -y @taisly/agent
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "agent": {
      "command": "npx",
      "args": [
        "-y",
        "@taisly/agent"
      ],
      "env": {
        "TAISLY_API_KEY": "<YOUR_TAISLY_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `TAISLY_API_KEY` | no | yes | Optional. Run `taisly setup --agent <agent-slug>` to store a local Taisly agent credential, or set this manual API key from Taisly Settings. |
| `TAISLY_API_KEY` | no | no |  |

## FAQ

### Can Taisly publish a video from a local file?

Yes, but only through the local stdio MCP server or CLI, since the remote server cannot read files from your machine. Run npx @taisly/agent mcp for local file access.

### Which social platforms can Taisly post to?

It publishes to Instagram, TikTok, YouTube, X, and Facebook. You can also schedule posts for a later time.

### How do I validate a video before publishing it?

Run taisly posts:validate with the video path, target platform IDs, and a description. The recommended workflow is auth, platforms, validate, confirm, create, then status.

### Can the agent check whether a post succeeded?

Yes, run taisly posts:status with the returned historyId. The skill tells agents to save that ID for status checks.
