MCP-IPFS
Provides tools for interacting with IPFS, enabling content-addressed storage, peer-to-peer networking, pinning, IPNS, MFS, DAG operations, and node monitoring.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP-IPFSWhat's the IPFS node status?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
What is MCP-IPFS?
MCP-IPFS is a Model Context Protocol (MCP) server that enables Claude and other AI assistants to interact directly with IPFS (InterPlanetary File System). It provides a comprehensive suite of tools for content-addressed storage, peer-to-peer networking, and decentralized data management.
Built on Helia (the modern JavaScript IPFS implementation), with a pluggable architecture ready for Kubo and remote pinning services.
Why MCP-IPFS?
Without MCP-IPFS | With MCP-IPFS |
Manual IPFS CLI commands | Claude handles IPFS operations directly |
Copy-paste CIDs between tools | Seamless content-addressed workflows |
No visibility into node status | Full observability of peers, bandwidth, DHT |
Long operations block interaction | Background jobs with progress tracking |
Single IPFS backend | Pluggable: Helia, Kubo, pinning services |
Related MCP server: Filesystem MCP Server
๐ Quick Start
Prerequisites
Node.js 18+
Claude Code CLI or any MCP-compatible client
Installation
# Clone the repository
git clone https://github.com/EricGrill/mcp-ipfs.git
cd mcp-ipfs
# Install dependencies
npm install
# Build
npm run buildAdd to Claude Code
Add to your ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"ipfs": {
"command": "node",
"args": ["/path/to/mcp-ipfs/dist/index.js"]
}
}
}Verify Installation
You: What's the IPFS node status?
Claude: [Uses node_status tool]
Node is running with peer ID QmXxx...
Connected to 12 peers
Repository size: 45.2 MBโจ Features
๐ฆ Content Operations
Add & retrieve text, JSON, files, directories
Pin management to prevent garbage collection
IPNS publishing for mutable names
MFS (Mutable File System) for familiar file operations
DAG operations for advanced IPLD data structures
๐ญ Node Monitoring
Node identity and health status
Peer connections with latency and direction
Bandwidth statistics total and per-protocol
Repository stats and garbage collection
DHT operations for peer/content discovery
โก Background Jobs
Async operations for large files and slow networks
Progress tracking with real-time updates
Job management - list, poll, cancel
Auto-detection - small ops return immediately
๐ Pluggable Backends
Helia (embedded) - zero external dependencies
Kubo (planned) - connect to existing go-ipfs nodes
Pinning Services (planned) - Pinata, Web3.Storage
๐ Tools
Content Tools
Tool | Description |
| Add text, JSON, or file to IPFS. Returns CID. |
| Retrieve content by CID |
| Pin content to prevent garbage collection |
| Unpin content |
| List all pinned CIDs |
| Add entire directory, returns root CID |
| List contents of directory CID |
| Get specific file from directory by path |
IPNS Tools
Tool | Description |
| Publish CID to IPNS name |
| Resolve IPNS name to current CID |
| List available IPNS keys |
MFS Tools (Mutable File System)
Tool | Description |
| Write content to mutable path |
| Read content from MFS path |
| List directory contents |
| Create directory |
| Remove file or directory |
| Move/rename file or directory |
| Flush MFS to get root CID |
DAG Tools
Tool | Description |
| Store IPLD data, returns CID |
| Retrieve IPLD node, optionally traverse path |
Node Tools
Tool | Description |
| Get peer ID, public key, versions |
| Quick health check |
| Detailed version info |
| Connected peers with details |
| Simple peer count |
| Network bandwidth metrics |
| Connect to peer by multiaddr |
| Disconnect from peer |
| Repository statistics |
| Trigger garbage collection |
DHT Tools
Tool | Description |
| Find addresses for peer ID via DHT |
| Find peers providing a CID (configurable limit) |
| Announce content availability to the network |
Job Tools
Tool | Description |
| Get status of background job |
| List all jobs |
| Cancel running job |
โ๏ธ Configuration
Configuration File
Create mcp-ipfs.config.json in the project root:
{
"backend": "helia",
"persistence": {
"enabled": true,
"path": "./ipfs-data"
},
"helia": {
"libp2p": {
"addresses": ["/ip4/0.0.0.0/tcp/4002"],
"bootstrap": true
}
},
"jobs": {
"maxConcurrent": 3,
"defaultTimeout": 300000
}
}Environment Variables
Environment variables override config file settings:
Variable | Description | Default |
| Backend to use |
|
| Enable persistent storage |
|
| Data directory path |
|
| Connect to bootstrap nodes |
|
| Max concurrent jobs |
|
| Default job timeout (ms) |
|
Persistence Modes
Persistent (default):
Content survives server restarts
Uses LevelDB blockstore
Recommended for production
In-memory:
Content lost on restart
Faster for testing
Set
persistence.enabled: false
๐ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Claude โ
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Protocol (JSON-RPC)
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP-IPFS Server โ
โ โ
โ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Content โ โ Node โ โ Job โ โ
โ โ Tools โ โ Tools โ โ Manager โ โ
โ โโโโโโโฌโโโโโโ โโโโโโโฌโโโโโโ โโโโโโโโฌโโโโโโโ โ
โ โ โ โ โ
โ โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโโผโโโโโโโโโโโโ โ
โ โ Backend Layer โ โ
โ โ (IPFSBackend) โ โ
โ โโโโโโโโโโโโโฌโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโ
โโโโโโโผโโโโโ โโโโโโโผโโโโโ โโโโโโโผโโโโโ
โ Helia โ โ Kubo โ โ Pinning โ
โ(embedded)โ โ API โ โ Services โ
โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
โ planned plannedKey Components
Component | Responsibility |
Content Tools | IPFS add/get/pin, IPNS, MFS, DAG operations |
Node Tools | Status, peers, bandwidth, repo, DHT, config |
Job Manager | Queue long operations, track progress, enable polling |
Backend Layer | Abstract IPFS implementation details |
Backend Interface
interface IPFSBackend {
// Lifecycle
start(): Promise<void>;
stop(): Promise<void>;
// Content
add(content: Uint8Array, options?: AddOptions): Promise<CID>;
get(cid: CID): Promise<Uint8Array>;
pin(cid: CID): Promise<void>;
unpin(cid: CID): Promise<void>;
// Node info
id(): Promise<PeerInfo>;
peers(): Promise<PeerConnection[]>;
// ... etc
}๐ Project Structure
mcp-ipfs/
โโโ src/
โ โโโ index.ts # Entry point
โ โโโ server.ts # MCP server setup
โ โโโ tools/
โ โ โโโ content.ts # Content operations
โ โ โโโ node.ts # Node monitoring
โ โ โโโ jobs.ts # Job management
โ โโโ backends/
โ โ โโโ interface.ts # Backend abstraction
โ โ โโโ helia.ts # Helia implementation
โ โโโ jobs/
โ โ โโโ manager.ts # Job queue
โ โโโ config.ts # Configuration
โโโ test/
โ โโโ content.test.ts
โ โโโ node.test.ts
โ โโโ jobs.test.ts
โโโ docs/
โ โโโ plans/ # Design documents
โโโ package.json
โโโ tsconfig.json
โโโ mcp-ipfs.config.json๐งช Development
# Install dependencies
npm install
# Run in development mode
npm run dev
# Run tests
npm test
# Build for production
npm run build
# Lint
npm run lint๐ค Contributing
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
๐ Related Resources
Learn More
Community
๐ License
MIT License - see LICENSE for details.
๐ Acknowledgments
Protocol Labs for IPFS and Helia
Anthropic for Claude and MCP
The agents-skills-plugins marketplace for inspiration
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/EricGrill/mcp-ipfs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server