mcp
v0.2.0Storage for AI agents: free public items, or private items paid with credits or USDC (x402).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pricing
Prices, limits, allowed content types and the payment network. Free.
account
The account behind FILESHARE_API_KEY: credits left, files, storage used. Free. Says how to get a key when none is configured.
buy_credits
Buy N credits for the account behind FILESHARE_API_KEY with one USDC payment of N cents from WALLET_KEY (both must be configured). 1 credit = 1 paid call.
| Parameter | Type | Description |
|---|---|---|
credits * | integer | How many credits to buy (1 to 10000). |
store_public
Store JSON, text or a small file (up to 10 MB) as a PUBLIC item for 1 to 7 days, free, no payment or key needed. Anyone with the returned public link can open it (100 opens included), so never put secrets here. Give exactly one of content, content_base64 or file_path. Returns id, secret, expiry and links.public.
| Parameter | Type | Description |
|---|---|---|
content | string | Text or JSON to store. |
content_base64 | string | Binary content, base64-encoded. |
content_type | string | MIME type. Detected from the content when omitted. |
file_path | string | Path of a local file to upload. |
label | string | A label to recognise the item later. |
ttl_days | integer | Days to keep the item (default 7, at most 7). |
wallet_status
The paying wallet's address and USDC balance on the configured network, and how to fund it. Free.
store
Store JSON, text or a file privately for 1 to 365 days (default 7). A paid call (one credit or $0.01 USDC) that includes 100 reads. Give exactly one of content (text/JSON), content_base64 (binary) or file_path (a local file). Returns id, a one-time secret, expiry and links. Keep the secret.
| Parameter | Type | Description |
|---|---|---|
content | string | Text or JSON to store. |
content_base64 | string | Binary content, base64-encoded. |
content_type | string | MIME type. Detected from the content when omitted. |
file_path | string | Path of a local file to upload. |
label | string | A label to recognise the item later. |
ttl_days | integer | Days to keep the item (default 7). |
retrieve
Retrieve an item's content. Counts one read. Text and JSON are returned inline; binary content is returned base64-encoded unless save_to (a local path) is given, in which case it is written there.
| Parameter | Type | Description |
|---|---|---|
id * | string | Item id, e.g. itm_... |
secret * | string | The item's secret (sk_...), returned once by store. |
save_to | string | Local path to write the content to instead of returning it. |
status
Expiry, remaining reads, size, type and whether a password is set. Free, does not count as a read.
| Parameter | Type | Description |
|---|---|---|
id * | string | Item id, e.g. itm_... |
secret * | string | The item's secret (sk_...), returned once by store. |
extend
Set a new expiry, ttl_days from now (1 to 365; must be later than the current expiry). Costs $0.01 USDC.
| Parameter | Type | Description |
|---|---|---|
id * | string | Item id, e.g. itm_... |
secret * | string | The item's secret (sk_...), returned once by store. |
ttl_days * | integer |
buy_reads
Add 1000 reads to an item. Costs $0.01 USDC. No secret needed, so anyone can top up an item they were given. Do this before sharing with many readers.
| Parameter | Type | Description |
|---|---|---|
id * | string | Item id, e.g. itm_... |
revoke_links
Invalidate every share link issued so far for the item (new ones can still be created). The password address is unaffected. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | Item id, e.g. itm_... |
secret * | string | The item's secret (sk_...), returned once by store. |
set_password
Protect the item's public address with a password (12 to 128 characters) and return that address. Anyone who opens it gets a password form (browsers) or can send the password in an x-password header (agents); each successful open counts one read. Replaces any previous password. Signed share_link URLs are not affected. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | Item id, e.g. itm_... |
password * | string | |
secret * | string | The item's secret (sk_...), returned once by store. |
remove_password
Remove the password; the public address then stops serving the item (signed share links still work). Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | Item id, e.g. itm_... |
secret * | string | The item's secret (sk_...), returned once by store. |
delete
Delete the item now. Permanent, no refund. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | Item id, e.g. itm_... |
secret * | string | The item's secret (sk_...), returned once by store. |
feedback
Send feedback to the service operator: a missing feature, a bug, an abuse report about an item, or anything else. Free.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
type * | string | |
item_id | string | |
request_id | string | The request_id from an error, if reporting one. |