mcp-ipfs
🪐 MCP IPFS Server
claude mcp add --transport stdio alexbakers-mcp-ipfs node dist/index.js \ --env W3_LOGIN_EMAIL="your-email@example.com"
How to use
This MCP server wraps the storacha.network w3 CLI commands to manage Storacha spaces and data via MCP clients. It exposes a set of MCP tools that map to w3 commands for authentication, space management, data operations, sharing, delegations, proofs, keys and tokens, and advanced storage actions. Clients can connect to the MCP endpoint and invoke the provided tools (e.g., w3_login, w3_space_ls, w3_up, w3_open, w3_delegation_create, w3_key_create, w3_plan_get) through the MCP protocol to perform tasks against storacha.network without needing to run w3 commands locally.
To use it, configure a client to point at the MCP server (the example uses an NPX or Docker setup). The NPX flow runs the MCP server as a package, while the Docker flow runs the prebuilt image with the proper environment variable for login. The tools cover authentication, space management, data uploads/downloads, sharing links, delegations, proofs, and billing information, providing a comprehensive bridge between MCP clients and storacha.network via the w3 CLI.
How to install
Prerequisites:
- Node.js 22.0.0 or higher
- npm (comes with Node.js)
- A configured Storacha/w3 login flow (see prerequisites in the README)
Install steps:
- Clone the repository and install dependencies:
git clone https://github.com/alexbakers/mcp-ipfs.git
cd mcp-ipfs
npm install
- Build the TypeScript code:
npm run build
- Run the server locally (after setting the required environment variable):
export W3_LOGIN_EMAIL="your-email@example.com"
node dist/index.js
- Alternatively, run with NPX (as described in the README) or via Docker as shown in the examples.
Additional notes
Notes and tips:
- The server relies on the w3 CLI, so ensure @web3-storage/w3cli is installed and you are logged in with the W3_LOGIN_EMAIL environment variable set (W3_LOGIN_EMAIL).
- Some w3 commands require absolute filesystem paths. When using NPX, supply absolute host paths. When using Docker, mount host directories and use the container paths inside the container.
- If you modify configuration, include the W3_LOGIN_EMAIL environment variable in the MCP config as shown in the examples.
- The project provides a build step that outputs to dist/index.js; ensure you run the build before starting the server in production.
- For NPX-based usage, you may leverage the provided example MCP config in the README to run ipfs via npx mcp-ipfs with an appropriate W3_LOGIN_EMAIL.
Related MCP Servers
XcodeBuildMCP
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
pluggedin-app
The Crossroads for AI Data Exchanges. A unified, self-hostable web interface for discovering, configuring, and managing Model Context Protocol (MCP) servers—bringing together AI tools, workspaces, prompts, and logs from multiple MCP sources (Claude, Cursor, etc.) under one roof.
MediaWiki
Model Context Protocol (MCP) Server to connect your AI with any MediaWiki
filesystem
A Model Context Protocol (MCP) server for platform-agnostic file capabilities, including advanced search/replace and directory tree traversal
mongo
MCP server that provide tools to LLMs such as claude in cursor to interact with MongoDB
vscode-context
MCP Server to Connect with VS Code IDE