npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

onchain-notes-mcp

v1.0.2

Published

MCP server for Onchain Notes dApp on Base mainnet — create, read, update, and delete notes via AI clients

Downloads

506

Readme

onchain-notes-mcp

npm version npm downloads License: MIT Base Mainnet

MCP server for reading and writing onchain notes on Base mainnet.


What is this?

MCP (Model Context Protocol) is an open standard that lets AI clients like Claude Desktop and Cursor call external tools. This package exposes an MCP server that connects those clients to Onchain Notes — a note-taking dApp deployed on Base mainnet.

Notes are stored entirely on-chain. No backend, no database — just your wallet and the contract.


Usage

Once configured, you can use natural language in Claude Desktop or Cursor:

Save a note titled "Meeting prep" about today's standup agenda.
Show me all my onchain notes.
Update note #3 with a new title "Q2 Goals" and my revised objectives.
Delete note #5.
How many notes do I have stored on-chain?

Installation

Option 1 — npx (recommended)

No install needed. Add it to your MCP config and it runs on demand.

Option 2 — Global install

npm install -g onchain-notes-mcp

Option 3 — Build from source

git clone https://github.com/memosr/onchain-notes-mcp.git
cd onchain-notes-mcp
npm install
npm run build
PRIVATE_KEY=0x... node dist/index.js

Configuration

Claude Desktop

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add under mcpServers:

{
  "mcpServers": {
    "onchain-notes": {
      "command": "npx",
      "args": ["onchain-notes-mcp"],
      "env": {
        "PRIVATE_KEY": "your_private_key_here"
      }
    }
  }
}

Restart Claude Desktop after saving.

Cursor

In .cursor/mcp.json or your global MCP settings:

{
  "mcpServers": {
    "onchain-notes": {
      "command": "npx",
      "args": ["onchain-notes-mcp"],
      "env": {
        "PRIVATE_KEY": "your_private_key_here"
      }
    }
  }
}

Environment variables

| Variable | Required | Description | |---|---|---| | PRIVATE_KEY | Yes | Your wallet's private key (with or without 0x prefix) |


Available tools

| Tool | Type | Description | |---|---|---| | create_note | Write | Create a new note on-chain | | list_notes | Read | Fetch all notes for your wallet | | update_note | Write | Edit an existing note by ID | | delete_note | Write | Permanently remove a note by ID | | get_note_count | Read | Return the total number of your notes |

Schemas

create_note

{
  "title": "string (max 100 chars, required)",
  "content": "string (max 5000 chars, required)"
}

list_notes

{}

Returns an array of { id, title, content } objects for the connected wallet.

update_note

{
  "noteId": "number (required)",
  "title": "string (max 100 chars, required)",
  "content": "string (max 5000 chars, required)"
}

delete_note

{
  "noteId": "number (required)"
}

get_note_count

{}

Returns { count, message }.


Security

Your private key never leaves your machine. It's read from the env block in your local MCP config, used only to sign transactions locally via ethers.js, and never sent anywhere.

A few things worth doing:

  • Don't commit your private key to version control.
  • Use a dedicated wallet with a small ETH balance rather than your main wallet. A few dollars of ETH on Base covers hundreds of transactions.
# Generate a fresh wallet with Foundry's cast
cast wallet new

Fund the new address with a small amount of ETH on Base for gas, then use that key in the config.

All write transactions include a builder code suffix in the calldata. This attributes usage to memosr.base.eth via the Onchain Notes builder registry and doesn't affect transaction behavior or note data.


Network details

Gas fees for note operations are typically a fraction of a cent.


Contributing

git clone https://github.com/memosr/onchain-notes-mcp.git
cd onchain-notes-mcp
npm install
npm run build

Open an issue for bugs or feature requests.


License

MIT — see LICENSE


Built by memosr.base.eth. Open to PRs and issues.