# Potok MCP & Speech API - Complete Instructions for AI Agents > Read this document if a user asks you to connect to Potok (https://potok.now), read their Telegram or web call transcripts, analyze meetings, manage action items, or transcribe audio/video. ## Quick Summary - Service: Potok (https://potok.now) and @potok_now_bot (https://t.me/potok_now_bot) - Official Remote Streamable HTTP MCP URL: https://api.potok.now/mcp (equivalent alias: https://api.potok.now/app-api/mcp) - REST API v1 Base URL: https://api.potok.now/app-api/v1 - Key Prefix: ptk_live_... (issued in Telegram bot via /mcp or /api, or in web cabinet https://potok.now/app?view=api) - Quotas & Free Tier Access: - Reading existing Telegram and web transcripts via MCP is free on every plan (including Free). - Creating the first API key automatically credits +120 free API sandbox minutes (separate from Telegram/web subscriptions) for calling REST API transcription endpoints. - Auth Header: `Authorization: Bearer ptk_live_YOUR_KEY` (or `X-API-Key: ptk_live_YOUR_KEY`) ## Remote Streamable HTTP MCP (No Local Installation Required) Protocol: JSON-RPC 2.0 over HTTP (`protocolVersion: "2025-03-26"`). - Discovery (no auth): `GET https://api.potok.now/mcp` - JSON-RPC calls (auth required): `POST https://api.potok.now/mcp` with `Authorization: Bearer ptk_live_YOUR_KEY` and `Content-Type: application/json`. ### Client Configurations #### Antigravity (`mcp_config.json`) & Gemini CLI (`~/.gemini/settings.json`) ```json { "mcpServers": { "potok": { "serverUrl": "https://api.potok.now/mcp", "headers": { "Authorization": "Bearer ptk_live_YOUR_KEY" } } } } ``` #### Cursor (`~/.cursor/mcp.json`) ```json { "mcpServers": { "potok": { "url": "https://api.potok.now/mcp", "headers": { "Authorization": "Bearer ptk_live_YOUR_KEY" } } } } ``` #### VS Code (`.vscode/mcp.json`) ```json { "servers": { "potok": { "type": "http", "url": "https://api.potok.now/mcp", "headers": { "Authorization": "Bearer ptk_live_YOUR_KEY" } } } } ``` #### Claude Code CLI & Claude.ai Connectors ```bash claude mcp add --transport http potok https://api.potok.now/mcp --header "Authorization: Bearer ptk_live_YOUR_KEY" ``` In claude.ai web/Desktop: Settings -> Connectors -> Add custom connector -> `https://api.potok.now/mcp`. #### OpenAI Codex CLI (`~/.codex/config.toml`) ```toml [mcp_servers.potok] url = "https://api.potok.now/mcp" bearer_token_env_var = "POTOK_API_KEY" ``` #### ChatGPT Connectors & Custom GPT Actions - MCP Connector: Settings -> Apps & Connectors -> Add MCP -> URL `https://api.potok.now/mcp`, header `Authorization: Bearer ptk_live_YOUR_KEY`. - OpenAPI Schema: https://potok.now/openapi.json ## 10 Live MCP Tools (`https://api.potok.now/mcp`) 1. `potok_get_workspace` () -> plan, balance, sandbox minutes left, project and task counts. 2. `potok_list_transcriptions` (`limit`: 1..50, `offset`: >=0, `project_id`: optional string) -> recent recordings and job_id values. 3. `potok_get_transcription` (`job_id`: string `^[0-9]{9,11}_[0-9a-f]{6}$`, `offset`: int, `limit`: int) -> full text, timecoded/speaker segments, AI reports. 4. `potok_search_transcriptions` (`query`: string len>=2, `limit`: 1..50) -> full-text search across user transcriptions. 5. `potok_export_transcription` (`job_id`: string, `format`: `md|txt|srt|vtt|json`) -> formatted transcript export. 6. `potok_transcribe_url` (`url`: public YouTube/VK/RuTube/TikTok/direct media URL, `tc`: bool, `spk`: bool) -> queue URL for transcription. 7. `potok_run_report` (`job_id`: string, `kind`: `summary|tasks|ask|preset`, `prompt`: string if ask, `code`: string if preset) -> run AI analysis. 8. `potok_list_projects` () -> list workspace folders/projects. 9. `potok_list_tasks` (`status`: `open|done|dismissed|all`, `project_id`: optional, `job_id`: optional, `limit`: 1..100) -> list action items. 10. `potok_manage_task` (`action`: `create|update|delete`, `id`, `text`, `description`, `status`, `job_id`, `project_id`, `due_date`) -> create/edit/delete action items. ## REST API v1 (`https://api.potok.now/app-api/v1`) - `GET /app-api/v1/models` -> `potok-asr-v3`, `whisper-1`, `potok-batch-diarize`. - `POST /app-api/v1/audio/transcriptions` -> OpenAI Whisper API compatible (`base_url="https://api.potok.now/app-api/v1"`, `api_key="ptk_live_..."`), sync up to 64 MB, per-second billing (0.5 RUB/min or $0.006/min). Supports `X-External-Id` header. - `POST /app-api/v1/jobs` -> async batch transcription by URL (up to 2 GB / 10h) with `diarize`, `summary`, optional `webhook_url`. - `GET /app-api/v1/jobs/{job_id}` -> async batch job status and result. ## Telegram-to-Code Webhooks Configure outgoing HTTPS webhooks in Telegram bot `@potok_now_bot` via `/mcp` or `/api` -> Webhook (Telegram -> code). Signed with `X-Potok-Signature: sha256=` over `"{X-Potok-Timestamp}.{raw_body}"`. ## Official Documentation Links - Setup Guide (11 languages): https://potok.now/mcp - Web Cabinet & API Keys: https://potok.now/app?view=api - Developer Docs: https://potok.now/docs - OpenAPI JSON: https://potok.now/openapi.json - Root AI Index: https://potok.now/llms.txt