DocsMCP

MCP

Connect your AI assistant to Alkin with your account and approved permissions.

3 min read

Connect your assistant

Alkin's remote MCP endpoint is https://alkin.app/api/mcp. Add this URL to a client that supports Streamable HTTP and OAuth. You do not need to install a local Alkin server or create an API key.

Open the browser authorization flow, sign in to Alkin through Google, review the app address and requested permissions, then choose Allow access. Choose Cancel to decline.

The production endpoint is publicly reachable. Account data and tool calls require OAuth. Preview deployments keep their separate hosting protection.

Codex

Add the server, then sign in from the browser flow:

Terminal
codex mcp add alkin --url https://alkin.app/api/mcp
codex mcp login alkin

Claude Code

Add the HTTP server:

Terminal
claude mcp add --transport http alkin https://alkin.app/api/mcp

Run /mcp inside Claude Code, choose Alkin, and authenticate. Other clients can use the same endpoint when they support OAuth discovery and dynamic client registration.

Available tools

Every public API operation has an MCP tool. Each tool works with your own data and the permissions you approve.

Available tools
ToolAction
list_projectsList your saved projects.
get_projectRead a project and its run history.
create_projectCreate a project.
update_projectEdit a project's title or saved clip settings.
create_jobStart clipping a YouTube video or an uploaded file.
rebuild_jobApply changed settings to a completed run using its saved video and transcript.
get_jobCheck job status and results.
get_job_downloadsGet temporary links for completed clips.
create_uploadGet instructions to upload a video directly to storage.
list_ball_headsList your reusable game head images and temporary preview links.
upload_ball_headSave a transparent PNG or WebP head image from base64 data.

Ask your assistant to use the returned job ID when checking progress. Processing continues after the initial request. Creating clips uses the same account allowance as the website and API.

To edit settings, read the project first, change the fields you need, then call update_project with projectId and changes. If changing configuration, send the complete configuration. Existing jobs keep their saved settings; future jobs use the new settings.

Video uploads and downloads transfer bytes directly through signed URLs. MCP does not transfer video files inside tool messages.

For a reusable game head, call upload_ball_head with contentType (image/png or image/webp) and plain base64 data, without a data URL prefix. The decoded file must be at most 2 MiB, square, transparent, and 256–2048 pixels wide. Use the returned asset id as configuration.game.headAssetId when creating a project. Each upload creates an asset; check list_ball_heads before retrying a timed-out upload.

Call rebuild_job with jobId, optional complete configuration, and optional one-based clipIndices. Use [2] to edit one finished clip or [1,2] for a batch, including older runs without saved source ranges. For a full-source cut, send ordered nonoverlapping ranges with each clip's metadata (title, description, hashtags, tags); the saved source and transcript render those exact cuts without AI selection or transcription. Do not combine ranges and clipIndices. Omitting both uses the saved plan or selects again when selection settings change. Omitting configuration uses the project's saved preferences. The result contains job and reused; poll job.id. Each changed version keeps the earlier result. Rebuilds consume processing allowance and require jobs:create.

Saved media must still exist. Missing media produces an error rather than downloading from YouTube or transcribing again. Finished-clip edits retain baked captions and picture; add a title or mini-game without changing the original selection.

Permissions and disconnection

The consent page lists exactly what an app requests. Reading projects and jobs does not grant permission to create clips. Creating clips requires your approval and consumes processing allowance. The option to stay connected lets a client renew access until the connection expires or you disconnect it.

Editing projects requires projects:update. If your MCP connection predates this permission, remove and add the Alkin server again, then approve the new permission before using update_project.

Open Account, find Connected apps, and choose Disconnect. This blocks new requests and token renewals for that connection. Accepted jobs continue running, and previously signed storage links expire separately.

If a connection expires, authenticate again from your client. If access is denied, check its approved permissions. For a rate limit, wait for the returned Retry-After delay.