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
- Cloud Platform
- Self-Hosted
- Local Development
Rate Limiting
Endpoints
List Clipboard Entries
Retrieve all clipboard entries for the authenticated profile.Get Clipboard Entry
Retrieve a specific entry by name or index.Provide either
name or idx, not both. If neither is provided, returns an error.Set Named Entry
Create or update a named clipboard entry.Push to Stack
Add a new entry to the indexed stack (LIFO).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).Delete Entry
Delete a specific entry by name or index.Clear All Entries
Delete all clipboard entries for the profile.Data Types
ClipboardEntry
Source Types
Thesource 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
Use Descriptive Names
Use Descriptive Names
Choose meaningful names that describe the data:
- Good:
last_api_response,user_session_context - Bad:
temp,x,data1
Set Appropriate TTLs
Set Appropriate TTLs
Match TTL to your use case:
- Temporary processing: 5-15 minutes
- Session data: 1-4 hours
- Cache data: 24 hours
Use Correct Content Types
Use Correct Content Types
Set content types for proper handling:
application/jsonfor structured datatext/plainfor simple stringsimage/pngfor base64-encoded images
Handle Expiration
Handle Expiration
Check for null responses and handle expired entries gracefully:
Related Resources
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

