Skip to main content

Clipboard API Reference

The Clipboard API provides persistent key-value storage for MCP tools and AI agents. Access data using named keys or stack-like indexed operations.
All clipboard endpoints require authentication. Include your API key in the Authorization header.

Base URL

Rate Limiting

Endpoints

List Clipboard Entries

Retrieve all clipboard entries for the authenticated profile.
Response:

Get Clipboard Entry

Retrieve a specific entry by name or index.
Request Body:
Provide either name or idx, not both. If neither is provided, returns an error.
Response:

Set Named Entry

Create or update a named clipboard entry.
Request Body:
Response:

Push to Stack

Add a new entry to the indexed stack (LIFO).
Request Body:
Response:
When a new entry is pushed, existing indexed entries have their indices incremented (i.e., the newest entry is always at index 0).

Pop from Stack

Remove and return the most recent indexed entry (index 0).
Response:
Pop removes the entry from storage. If you need to read without removing, use the GET endpoint with idx: 0.

Delete Entry

Delete a specific entry by name or index.
Request Body:
Response:

Clear All Entries

Delete all clipboard entries for the profile.
Response:
This action is irreversible. All clipboard entries for the profile will be permanently deleted.

Data Types

ClipboardEntry

Source Types

The source field indicates how the clipboard entry was created:
The source field is automatically set based on how the entry was created. You cannot override this value when creating entries.

Visibility Levels

Encoding Options


Error Responses

Not Found

Validation Error

Size Limit Exceeded

Rate Limited


Limits & Constraints


Best Practices

Choose meaningful names that describe the data:
  • Good: last_api_response, user_session_context
  • Bad: temp, x, data1
Match TTL to your use case:
  • Temporary processing: 5-15 minutes
  • Session data: 1-4 hours
  • Cache data: 24 hours
Set content types for proper handling:
  • application/json for structured data
  • text/plain for simple strings
  • image/png for base64-encoded images
Check for null responses and handle expired entries gracefully:

Memory Feature

Platform overview of the Memory feature

JavaScript SDK

Clipboard methods in JavaScript

Python SDK

Clipboard methods in Python

Go SDK

Clipboard methods in Go