Meshkit

Introduction

Start building with Meshkit, find a guide for your storage setup, or go straight to the API and MCP references.

Meshkit (@ipfs-meshkit/meshkit v1.2.1) is a TypeScript SDK for Kubo/IPFS and S3-compatible storage. It provides one API for uploading, retrieving, and pinning content, with optional client-side encryption, IPNS, and multi-node failover.

npm install @ipfs-meshkit/meshkit

Start here

  1. Install Meshkit and choose a Kubo setup.
  2. Follow the quick start to upload, pin, and retrieve a file.
  3. Read core concepts for CIDs, pinning, IPNS, and node failover.

Guides

If you want to…Read
Choose between Kubo and S3-compatible storageStorage backends
Run a local Kubo daemon with your appLocal daemon
Use more than one Kubo nodeMulti-node failover
Publish mutable links to contentIPNS
Encrypt data before uploadingClient-side encryption
Handle SDK and node errorsError handling

API reference

MCP server

The @ipfs-meshkit/mcp package exposes Kubo storage and IPNS operations as tools for MCP-compatible clients.

Minimal example

import { init } from '@ipfs-meshkit/meshkit';

const { meshkit } = await init({ nodes: ['http://127.0.0.1:5001'] });
const cid = await meshkit.upload(new TextEncoder().encode('hello'));
const bytes = await meshkit.retrieve(cid);

console.log(new TextDecoder().decode(bytes));

Requirements and packages

PackagePurpose
@ipfs-meshkit/meshkit 1.2.1TypeScript SDK for storage and IPNS.
@ipfs-meshkit/mcp 1.0.1MCP server for Kubo storage and IPNS tools.

See examples for larger integrations and the changelog for release details.

On this page