Skip to main content
Glama
README.md
# Potok MCP Server (`@potok/mcp-server`)

[English](README.md) | [Русский](README.ru.md)

Connect your Potok transcriptions (from Telegram bot `@potok_now_bot` and `https://potok.now/app`) directly to **Claude Desktop**, **Claude Code**, **Cursor**, **ChatGPT**, **Codex**, **Windsurf**, and **Obsidian**.

Available on **all Potok plans, including Free**.

## Option 1: Remote MCP (Zero Install)

Connect directly to Potok's hosted Streamable HTTP endpoint:

- **URL:** `https://api.potok.now/mcp`
- **Auth:** `Authorization: Bearer ptk_live_...`

```bash
claude mcp add --transport http potok https://api.potok.now/mcp \
  --header "Authorization: Bearer YOUR_POTOK_API_KEY"
```

## Option 2: Local MCP (`npx`, stdio)

Best when you want to export `.md` notes with YAML frontmatter directly into your **Obsidian** vault or upload local files up to 2 GB:

```json
{
  "mcpServers": {
    "potok": {
      "command": "npx",
      "args": ["-y", "@potok/mcp-server"],
      "env": {
        "POTOK_API_KEY": "ptk_live_your_key"
      }
    }
  }
}
```

## Available Tools (12)

- `potok_get_workspace` — Plan, remaining minutes, scopes, webhook count
- `potok_list_transcriptions` — Paginated list with optional `project_id`
- `potok_get_transcription` — Transcript text, speaker segments, AI reports
- `potok_search_transcriptions` — Full-text keyword search
- `potok_export_transcription` — Export as `md`, `txt`, `srt`, `vtt`, `json` (with `output_path` disk save + Obsidian frontmatter)
- `potok_bulk_export` — Bulk ZIP export up to 100 recordings into `output_dir`
- `potok_upload_file` — Upload local audio/video file
- `potok_transcribe_url` — Transcribe YouTube, VK, RuTube, TikTok URL
- `potok_run_report` — Run summary, tasks, ask, or preset report
- `potok_list_projects` — List workspace folders/projects
- `potok_list_tasks` — List action items
- `potok_manage_task` — Create, update, or delete tasks

## Telegram to Code Webhooks

Unlike polling-only services, Potok also supports signed outgoing HTTPS webhooks (`X-Potok-Signature: sha256=...`). Configure your endpoint in `@potok_now_bot` (`/api`) or at `https://potok.now/app` -> `API и настройки`.

## License

MIT