MCP / AI agent integration
Inkie exposes a Model Context Protocol (MCP) server so AI agents - Claude, Cursor, Windsurf, and others - can create content and give it a scheduled time directly.
Approval: content created or generated over MCP always waits for approval in the Inkie app. It is scheduled for its date and time, but it does not publish until you approve it there.
For MCP content, Inkie selects stock images or uses images you supply; it does not generate images with AI in these workflows.
Quick start
- Connect: add
https://app.inkie.ink/api/mcpto your MCP client using the HTTP transport. Client setup is below. - Authenticate: complete your client's OAuth sign-in, or supply an Inkie API key as
Authorization: Bearer YOUR_API_KEY. - Make your first call: ask your agent to run
get_platforms. It lists enabled destinations without changing content.
For a direct HTTP check with an API key, copy this JSON-RPC request:
curl --fail-with-body --silent --show-error https://app.inkie.ink/api/mcp \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_platforms","arguments":{}}}'MCP clients handle initialisation and tool discovery automatically. Raw HTTP examples here use the server's stateless JSON-RPC calls. Check both the JSON-RPC error field and result.isError: a tool failure can arrive with HTTP 200. To use local files, follow Uploading media.
Endpoint
https://app.inkie.ink/api/mcpThis is a Streamable HTTP MCP endpoint (MCP spec 2025-03-26). A legacy SSE endpoint is still available at /api/mcp/sse for clients that haven't migrated yet.
Static tool summary (manifest): https://app.inkie.ink/.well-known/mcp/manifest. For the authoritative tool list, use tools/list.
Authentication
Inkie's MCP server speaks OAuth 2.1. Most modern clients (Claude, Claude Code, Cursor) handle this automatically - on first connect they pop a browser window, you sign in to Inkie, and the client stores the token from there on. You don't need to set an Authorization header by hand.
If your client doesn't speak OAuth yet, fall back to an API key: get one from Settings → API keys and pass it as a Bearer token:
Authorization: Bearer YOUR_API_KEYSet up in Claude (web and Desktop)
Claude connects to remote MCP servers through custom connectors, not through claude_desktop_config.json. In Claude, open Settings → Connectors → Add custom connector, enter the URL below, and save:
https://app.inkie.ink/api/mcpClaude's connector dialog detects Inkie's settings. Leave the detected choices selected:
- Authentication: Sign in now. You sign in to Inkie through OAuth before Claude can use any tools.
- OAuth client: Register automatically. Claude registers itself with Inkie as you connect, so there is no client ID or secret to enter.
- Request headers and Advanced: leave empty.
Then click Connect. A browser window opens for you to sign in to Inkie and approve access; after that Claude remembers you. No API key or header is needed.
Set up in Claude Code
claude mcp add --scope user --transport http inkie https://app.inkie.ink/api/mcpWithout --scope user, the server is saved for the current folder only and will not appear when you start Claude Code elsewhere.
Then run /mcp inside Claude Code and choose Authenticate for inkie. A browser window opens for sign-in; once approved the token is stored.
Set up in ChatGPT desktop and Codex
Availability of custom MCP servers depends on your plan and workspace permissions.
In ChatGPT desktop, open Plugins, choose Browse directory, then Add and Add custom MCP server. Do not use the separate MCPs tab, which assumes an Authorization header.
- Name: for example, Inkie
- Server URL:
https://app.inkie.ink/api/mcp - Authentication: leave as OAuth
Tick I understand and want to continue, then choose Create as a plugin. Sign in and approve access when ChatGPT opens the Inkie page.
For Codex CLI, add the server and sign in:
codex mcp add inkie --url https://app.inkie.ink/api/mcp
codex mcp login inkieSet up in Cursor
In Cursor settings → MCP, add a new server:
- Name: Inkie
- Transport: HTTP
- URL:
https://app.inkie.ink/api/mcp
No header to set - Cursor will negotiate OAuth on first request.
Uploading media
Upload the file over HTTP, then attach it with an MCP tool. The upload endpoints are separate from MCP: there is no upload tool in tools/list. Videos go directly to Mux; images go to Supabase Storage. Your agent needs HTTP file-upload access, or you must upload the file and give it the returned IDs.
Inkie's upload POST and video status GET endpoints accept the same Authorization: Bearer API key or OAuth access token as MCP. They also support a signed-in browser session. Send the Inkie token only to Inkie, never to the returned uploadUrl. See upload authentication.
Both examples use Bash, curl and jq. Replace the key, local file path and CONTENT_ITEM_ID before running. Use the existing content-plan item ID returned as id by get_blog or get_post. Attaching an image replaces only the targeted image, but attaching a video deletes every existing image on the item (see below). Attaching does not create a post or blog.
Video: upload to Mux, poll, attach
POST /api/video-upload-urlwith{ filename, fileSize, folder? }, wherefileSizeis bytes. Keep all three response fields:uploadUrl,uploadIdandclientImageId.folderis an optional media-library folder.PUTthe raw video bytes touploadUrl. Mux processes the video after upload.- Poll
GET /api/video-upload-url?assetId=UPLOAD_IDuntilstatusisready. Pass the returneduploadId, notclientImageIdor a playback ID, despite the query parameter being namedassetId. Wait whileuploadingorprocessing; stop onerror, an HTTP failure or your timeout. - Call
attach_video_assetwith{ contentItemId, clientImageId }. A still-processing video is rejected. This deletes every existing image on the item. On a blog it clears both the featured and promo social images and puts the video in the featured-image slot; on a carousel social post every slide image is removed. Newsletter items are rejected.
A ready response includes playbackUrl (https://stream.mux.com/PLAYBACK_ID.m3u8) and thumbnailUrl (https://image.mux.com/PLAYBACK_ID/thumbnail.jpg). The Mux playback ID is embedded in these URLs, with no separate playbackId response field. It is distinct from the upload and attach IDs. Use clientImageId to attach the video; you do not need to extract the playback ID.
(
set -euo pipefail
BASE_URL="https://app.inkie.ink"
INKIE_API_KEY="YOUR_API_KEY"
VIDEO_FILE="./video.mp4"
CONTENT_ITEM_ID=12345
# 1. Request the direct Mux upload URL. fileSize is bytes.
UPLOAD=$(curl --fail-with-body --silent --show-error \
"$BASE_URL/api/video-upload-url" \
-H "Authorization: Bearer $INKIE_API_KEY" \
-H "Content-Type: application/json" \
--data "$(jq -n --arg filename "$(basename "$VIDEO_FILE")" \
--argjson fileSize "$(wc -c < "$VIDEO_FILE")" \
'{filename: $filename, fileSize: $fileSize}')")
UPLOAD_URL=$(jq -er '.uploadUrl' <<< "$UPLOAD")
UPLOAD_ID=$(jq -er '.uploadId' <<< "$UPLOAD")
CLIENT_IMAGE_ID=$(jq -er '.clientImageId' <<< "$UPLOAD")
jq '{uploadId, clientImageId}' <<< "$UPLOAD" # Keep these to resume polling.
# 2. Send bytes to Mux. Do not send the Inkie Bearer token here.
curl --fail-with-body --silent --show-error \
--request PUT --upload-file "$VIDEO_FILE" "$UPLOAD_URL"
# 3. Poll with uploadId, NOT clientImageId. At most 60 attempts.
STATUS=""
for ((attempt=1; attempt<=60; attempt++)); do
VIDEO=$(curl --fail-with-body --silent --show-error --max-time 120 \
--get "$BASE_URL/api/video-upload-url" \
-H "Authorization: Bearer $INKIE_API_KEY" \
--data-urlencode "assetId=$UPLOAD_ID")
STATUS=$(jq -er '.status' <<< "$VIDEO")
case "$STATUS" in
ready) break ;;
uploading|processing) sleep 5 ;;
*) printf '%s\n' "$VIDEO" >&2; exit 1 ;;
esac
done
if [ "$STATUS" != "ready" ]; then
echo "Video is still processing. Keep the IDs and poll again later." >&2
exit 1
fi
jq '{status, playbackUrl, thumbnailUrl}' <<< "$VIDEO"
# 4. Attach to the existing content item using clientImageId.
curl --fail-with-body --silent --show-error "$BASE_URL/api/mcp" \
-H "Authorization: Bearer $INKIE_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
--data "$(jq -n --argjson item "$CONTENT_ITEM_ID" \
--argjson image "$CLIENT_IMAGE_ID" \
'{jsonrpc: "2.0", id: 2, method: "tools/call", params: {
name: "attach_video_asset",
arguments: {contentItemId: $item, clientImageId: $image}
}}')" \
| jq -e 'if .error or .result.isError then error(tostring) else .result end'
)The 120 second limit on each poll is deliberate: the ready check can take longer than a few seconds. If polling times out, resume with the same uploadId; do not request another upload or attach before readiness.
Image: upload bytes, attach
POST /api/image-upload-urlwith{ filename, fileSize, contentType }. The positivefileSizeis bytes, at most 10 MiB (10,485,760 bytes). Allowed MIME types areimage/png,image/jpeg,image/gif,image/webpandimage/svg+xml. Keep{ clientImageId, uploadUrl, token, path }.PUTthe raw bytes touploadUrl, settingContent-Typeto the same MIME type. The signed token is already in the URL, so send noAuthorizationheader. Wait for HTTP 200.- Call
attach_image_assetwith{ contentItemId, clientImageId, target? }. There is no image processing wait or image status polling endpoint. The tool checks the stored file: its size must be at most 10 MiB, its storedContent-Typemust be on the allowed list and its first bytes must match a real image. If a check fails, the stored file is deleted and you mustPUTit again. The signeduploadUrlexpires after about 2 hours, so request a fresh one if it has lapsed.
(
set -euo pipefail
BASE_URL="https://app.inkie.ink"
INKIE_API_KEY="YOUR_API_KEY"
IMAGE_FILE="./image.jpg"
CONTENT_TYPE="image/jpeg"
CONTENT_ITEM_ID=12345
# 1. Request a signed storage upload URL.
UPLOAD=$(curl --fail-with-body --silent --show-error \
"$BASE_URL/api/image-upload-url" \
-H "Authorization: Bearer $INKIE_API_KEY" \
-H "Content-Type: application/json" \
--data "$(jq -n --arg filename "$(basename "$IMAGE_FILE")" \
--argjson fileSize "$(wc -c < "$IMAGE_FILE")" \
--arg contentType "$CONTENT_TYPE" \
'{filename: $filename, fileSize: $fileSize, contentType: $contentType}')")
UPLOAD_URL=$(jq -er '.uploadUrl' <<< "$UPLOAD")
CLIENT_IMAGE_ID=$(jq -er '.clientImageId' <<< "$UPLOAD")
# 2. The URL contains the signed token. No Bearer header here.
curl --fail-with-body --silent --show-error \
--request PUT --upload-file "$IMAGE_FILE" \
-H "Content-Type: $CONTENT_TYPE" "$UPLOAD_URL"
# 3. Attach immediately after the successful PUT. No polling.
curl --fail-with-body --silent --show-error "$BASE_URL/api/mcp" \
-H "Authorization: Bearer $INKIE_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
--data "$(jq -n --argjson item "$CONTENT_ITEM_ID" \
--argjson image "$CLIENT_IMAGE_ID" \
'{jsonrpc: "2.0", id: 3, method: "tools/call", params: {
name: "attach_image_asset",
arguments: {contentItemId: $item, clientImageId: $image, target: "blog"}
}}')" \
| jq -e 'if .error or .result.isError then error(tostring) else .result end'
)For blogs, target defaults to "blog" (featured image); choose "social" for the promo social image; this fails if the blog has no promo social post. Only the chosen image is replaced. Video attachment does not work this way: it removes every image on the item. For standalone social posts, target is ignored and the post's image is replaced.
If the image already has a public URL, use update_image with { blogId, imageUrl, target } instead. It imports the image from that URL, so no signed upload is needed. Despite its name, blogId is the content-plan item ID for either a blog or a social post.
Available tools
| Tool | What it does |
|---|---|
create_social_post | Create a social post with complete content and a scheduled time (needs approval in Inkie before it publishes) |
generate_social_post | Generate a social post with AI from a brief |
get_post | Retrieve a social post's details |
get_post_status | Get the derived generation and publishing state for a social post. Poll only while state is PROCESSING |
update_social_post | Update the caption, short-form caption or target platforms on an existing social post (or a blog's promo post) |
create_blog_post | Create a blog post with complete content and a scheduled time (needs approval in Inkie before it publishes) |
generate_blog_post | Generate a blog post with AI from a topic |
get_blog | Retrieve a blog post's details |
get_blog_status | Get the derived generation and publishing state for a blog post. Poll only while state is PROCESSING |
update_blog | Update an existing blog post's title, body, meta description, slug or published status |
delete_blog | Permanently delete a blog post and its content-plan item. Refuses a blog whose promo social post has already been published, so read the item's state first |
get_content_plan | Get a month's content items and status summary. Its item states map the shared status derivation into listing-friendly values |
get_platforms | List enabled publishing platforms |
attach_video_asset | Attach an already-uploaded, ready video to a blog or social item. Deletes every existing image on the item and takes the blog's featured-image slot. Rejects newsletter items |
attach_image_asset | Attach an already-uploaded image to a content item, replacing only the targeted blog or social image (target "social" fails on a blog with no promo social post) |
update_image | Replace the image on an existing content item (blog or social post) with a new image from a public URL |
delete_item | Permanently delete a content-plan item of any type (social post, carousel or blog). Refuses items that already have published posts, so read the item's state first |
reschedule_item | Move a content item to a new scheduled date, including across months, if it's not yet published |
list_onboarding_docs | List all onboarding documents for the client, with completion status |
get_onboarding_doc | Get an onboarding document's content by reference ID |
update_onboarding_doc | Update or create an onboarding document's content |
get_onboarding_prompt | Get the AI prompt used to guide an onboarding conversation for a given document |
add_content_idea | Append a bullet to the client’s running Content Ideas document, which the content planner can read |
list_content_ideas | Read the client’s running Content Ideas document without creating it |
Both Content Ideas tools still accept month and year for older clients, but ignore them.
Status fields
get_post_status and get_blog_status return a derived state. It combines text generation, image generation and publishing status into the single value a caller should act on. Manual action and failure states take precedence over approval.
state | Meaning | Caller action |
|---|---|---|
PROCESSING | Text or image generation is still pending or running. | Keep polling at a sensible interval. |
SCHEDULED | Generation is complete and the item is ready for its scheduled publishing flow. | Stop polling. No action is normally needed. |
PUBLISHED | Publishing completed successfully. | Stop polling and treat the item as complete. |
FAILED | Generation or publishing failed. | Stop polling, surface the failure and retry or inspect it in Inkie. |
PARTIALLY_PUBLISHED | At least one destination published and at least one did not. | Stop polling and inspect or retry the failed destinations. |
NEEDS_ATTENTION | A manual generation action is required, publishing is blocked or the stored statuses cannot safely promise progress. | Stop polling. Follow hint when present, otherwise inspect the item in Inkie. |
AWAITING_APPROVAL | Text and image generation are complete, but approval is required before publishing. | Stop polling, approve the item in Inkie, then check its status again. |
hint is optional. AWAITING_APPROVAL includes approval guidance. NEEDS_ATTENTION includes image guidance only when the known blocker is a manual image choice; other attention cases can omit it.
publishStatus
get_post, get_blog and both status tools expose the raw lowercase publishing lifecycle value. Use the derived state above for polling. In particular, approval_required does not become AWAITING_APPROVAL until text and image generation are complete.
| Value | Meaning | Caller action |
|---|---|---|
pending | Publishing has not been scheduled or started. | Use the status tool to decide whether generation is still running. |
scheduled | The item is queued for its scheduled time. | No action is normally needed. |
publishing | A publishing attempt is in progress. | Wait and check again later. |
published | Publishing completed. | Treat the item as complete. |
failed | Publishing failed. | Inspect the error and retry or correct the item. |
blocked | Publishing cannot continue without intervention. | Inspect and resolve the blocker in Inkie. |
partially_published | Only some destinations published successfully. | Inspect or retry the failed destinations. |
approval_required | The item must be approved before it can publish. | Finish any generation action first, then approve it in Inkie. |
deleted | The item was soft-deleted. | Restore it before attempting further work. |
archived | The item is archived and outside the active plan. | No action unless it should be restored to an active workflow. |
Status awaitingApproval
Both status tools return a boolean awaitingApproval. It is true whenever publishStatus is approval_required, including while state is PROCESSING, NEEDS_ATTENTION or FAILED. It flags the approval gate rather than completed generation: finish generation, resolve manual actions or failures, then approve the item in Inkie. false means there is no current approval gate; still follow the derived state for the next action.
Content-plan state and awaitingApproval
get_content_plan uses lowercase item states while preserving the shared derivation. The listing adds date-aware and progress-friendly buckets:
Item state | Meaning | Caller action |
|---|---|---|
pending | Shared state PROCESSING; generation is pending or selecting, with neither text nor image actively generating. | Wait or use the matching status tool for polling. |
generating | Shared state PROCESSING; generation is active. | Use the matching status tool for polling. |
scheduled | Shared state SCHEDULED with a future or missing scheduled date. | No action is normally needed. |
awaiting_approval | Shared state AWAITING_APPROVAL. | Approve the item in Inkie. |
overdue | Shared state SCHEDULED, but the scheduled date has passed without publication. | Inspect the publishing setup and reschedule or publish it. |
needs_attention | Shared state NEEDS_ATTENTION or PARTIALLY_PUBLISHED. | Inspect the item and complete the required action. |
published | Shared state PUBLISHED. | No action is needed. |
failed | Shared state FAILED. | Inspect the failure and retry or correct the item. |
summary.awaitingApproval is a number, not a boolean. It equals the number of items whose listing state is awaiting_approval. Callers should review and approve those items before expecting them to publish.
Example prompt
Once connected, you can instruct your AI agent naturally:
"Create a LinkedIn post for next Tuesday at 9am: 'Three things we learned shipping our first AI-powered feature. Thread below.' Use the Inkie MCP tool."
The post is created with that scheduled time but waits for approval in the Inkie app before it publishes.
Discovery manifest
The manifest at /.well-known/mcp/manifest is a static summary of the tools and their schemas. It is not tailored to your account. tools/list on /api/mcp is the authoritative list: it builds the schemas from the platforms enabled for your client, so MCP clients should use it.
See also
- Agent discovery (ARD) - how agents find and verify Inkie before connecting
- Get an API key
- OpenAPI spec - REST endpoint reference