Files MCP API
Binary file storage for AI assistants via Model Context Protocol
The Files MCP API provides AI assistants with binary file storage capabilities using category/key addressing. Perfect for document management, image storage, and file handling in AI workflows. Files are transferred as base64-encoded content via JSON-RPC 2.0.
MCP Endpoint
https://mcp.ainoflow.io/mcp/v1/filesTransport:
Configuration
Add MCP server in the UI dialog:
Add to your Claude Desktop configuration:
Add to your Cursor MCP configuration:
Documents
PDF, DOC, DOCX, TXT, RTF
Images
JPEG, PNG, GIF, BMP, TIFF, WebP
Archives & Other
ZIP, RAR, JSON, XML, CSV, any binary
Maximum file size: 100MB. Supports any binary format.
Available Tools
Parameters
No parameters required
Example
Parameters
category Logical grouping/namespace for files
content Base64 encoded file content
key Unique identifier (auto-generated UUID if omitted)
fileName Original filename (defaults to key)
contentType MIME type (defaults to application/octet-stream)
expiresAt Expiration date (ISO 8601)
expiresMs TTL in milliseconds from now
Example - With Explicit Key
Example - With Auto-Generated Key
Returns auto-generated key like: a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
Parameters
category Logical grouping/namespace
key Unique identifier
Example
Parameters
category Logical grouping/namespace
key Unique identifier
expirySeconds URL expiration (default: 3600, max: 86400)
Example
Parameters
category Logical grouping/namespace
page Page number (default: 1)
limit Items per page (default: 50, max: 1000)
prefix Filter by key prefix
Example
Parameters
category Logical grouping/namespace
key Unique identifier
Example
Available Resources
Returns: Base64-encoded file content with appropriate MIME type
Returns: JSON with size, content type, timestamps, version
Maximum file size100MBKey length200 charactersCategory length100 charactersPre-signed URL expiry1 hour (up to 24 hours)Total storagePlan-based limitFor focused use cases, use /mcp/v1/files/{category} for simpler tool interface without category parameter in requests.
Benefits:
- • No
categoryparameter needed in requests - • Dynamic tool names:
{category}_files_upload - • Better isolation for different purposes
- • Reduced token usage
Example Configuration
Tool names become: documents_files_upload, documents_files_list, etc.
Ready to integrate Files MCP?
Sign up for free and start using binary file storage with your AI agents