← Back to Filecoin Onchain Cloud
Install Filecoin Onchain Cloud
Pick your client, copy the command, done.
1
Add it to Claude Code
claude mcp add -e "PRIVATE_KEY=${PRIVATE_KEY}" filecoin-onchain-cloud -- npx -y @fil-b/foc-storage-mcpRequired:
PRIVATE_KEY+ 4 optionalEnvironment Variables
Set these before running Filecoin Onchain Cloud.
VariableDescriptionRequired
PRIVATE_KEYYour Filecoin wallet private keyYesFILECOIN_NETWORKFilecoin network to use (mainnet or calibration)NoTOTAL_STORAGE_NEEDED_GiBDefault storage capacity for calculationsNoPERSISTENCE_PERIOD_DAYSData retention durationNoRUNOUT_NOTIFICATION_THRESHOLD_DAYSBalance warning thresholdNoAvailable Tools (4)
Once configured, Filecoin Onchain Cloud gives your AI agent access to:
uploadFileUpload files with auto-paymentgetDatasetsList all stored datasetsgetDatasetGet dataset detailscreateDatasetCreate new datasetsTry It Out
After setup, try these prompts with your AI agent:
→How much would it cost to store 500 GiB of data for 6 months?
→Upload the file at ./data/project-archive.zip to my Filecoin storage.
→List all my currently stored datasets and their status.
→Create a new dataset named 'research-logs' for my upcoming project.
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Node.js 18+ with npm/npx installed
PRIVATE_KEY— Your Filecoin wallet private key
Alternative installation methods
Claude Code
npx -y @fil-b/foc-storage-mcpKeep this setup from going cold
Save the docs, env vars, and workflow around Filecoin Onchain Cloud in Conare so Claude Code, Codex, and Cursor remember it next time.