Use Foldr with Claude Code (MCP)
Claude Code is Anthropic's official agentic CLI for Claude, built for power users who want Claude to operate directly on their filesystem. It ships with native MCP support and a `claude mcp add` command. With Foldr configured, Claude Code can hand you a shareable URL for any file it just generated — ideal for CI reports, design exports, and debug bundles.
Installation
Add the Foldr MCP server to Claude Code with the snippet below. Replace fs_live_... with an API key from foldr.space/developers.
claude mcp add foldr \ --env FOLDR_API_KEY=fs_live_... \ -- npx -y @foldr/mcp-server
Setup tip: Scope the server with --scope user (across projects) or --scope project (just this repo). Remove with "claude mcp remove foldr".
Official Claude Code MCP docsWhat You Can Do
- Upload any file from Claude Code to Foldr and get a shareable URL back in the same turn
- Shorten long URLs to foldr.space/s/... links without leaving Claude Code
- Create or update a Foldr bio page from a Claude Code conversation
- Generate a hosted Foldr form and paste the submission URL into your reply
- Hand off build artifacts, screenshots, and logs to a URL without leaving your editor
Claude Code + Foldr FAQ
How do I install the Foldr MCP server in Claude Code?
Open Claude Code's MCP configuration (the CLI) and paste the config block shown above. Set FOLDR_API_KEY to a key you create at foldr.space/api-keys. Restart Claude Code if it doesn't hot-reload.
Which Foldr plan do I need to use the MCP integration with Claude Code?
The Foldr MCP server is available on every paid plan (Pro from $5/mo and Developer tier for API-heavy usage). The free tier can generate temporary 7-day links; for permanent storage, a Pro plan or Foldr Space is required.
I set the key but Claude Code says the Foldr tool isn't available — what's wrong?
The two most common issues: (1) Claude Code wasn't restarted after editing the config — most MCP hosts need a restart to pick up new servers. (2) Your API key is missing the `mcp:invoke` scope. Regenerate a key at foldr.space/api-keys with full scope and retry.
Can Claude Code upload files directly to Foldr, or just generate URLs?
Claude Code can do both. The MCP server exposes tools for `upload_file` (takes a local path or base64 blob), `shorten_url`, and `create_bio_page`. Any file Claude Code can read from disk can be uploaded.
Is the Foldr MCP integration with Claude Code production-ready?
Foldr's MCP server is stable and used in production. Claude Code's MCP support is currently stable and generally available. We pin to stable SDK versions and publish changelog entries for every breaking change.
Related MCP Integrations
Connect Claude Code to Foldr in under a minute
Grab an API key, paste the snippet above into Claude Code's MCP config, and your agent can upload files and share URLs immediately.
Get your Foldr API key