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 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-motoko-mcp-server

v1.3.1

Published

A CLI to generate a ready-to-deploy Motoko MCP server for the Prometheus Protocol.

Readme

Create Motoko MCP Server

npm version License: MIT

The official command-line tool to bootstrap a new, production-ready Motoko MCP server for the Prometheus Protocol.

This tool generates a complete, batteries-included project so you can skip the boilerplate and focus on building your application's core logic.

Features

The generated project includes:

  • Complete Project Structure: A ready-to-use Motoko project with dfx.json and mops.json pre-configured.
  • Prometheus SDKs: All necessary ICRC standards (ICRC-126, ICRC-127, etc.) are included as dependencies.
  • Built-in NPM Scripts: Common tasks like deploying, testing, and starting a local replica are available out-of-the-box.
  • App Store Integration: Comes with @prometheus-protocol/app-store-cli as a dev dependency and pre-configured scripts for easy publishing.
  • Optional Auth: A commented-out code block to easily enable API keys and/or Prometheus OAuth for monetization.
  • Sample Tool: A simple "echo" tool to demonstrate the basic structure of an MCP server.
  • Self-Documenting: Generates a detailed README.md within your new project to guide you further.

Prerequisites

Before you begin, make sure you have the following tools installed:

  1. Node.js: Version 18.0 or higher. Download.
  2. DFX: The DFINITY Canister SDK. Installation Guide.
  3. MOPS: The Motoko Package Manager. Installation Guide.
  4. Git: The version control system. Download.

🚀 Usage (Quick Start)

To create a new project, run the following command in your terminal:

npx create-motoko-mcp-server my-awesome-app

This will create a new directory called my-awesome-app with the complete project structure.

Then, navigate into your new project and install the dependencies:

cd my-awesome-app
npm install
npm run mops:install

Your new server is now ready to be deployed!

What You Get

Your new project directory will have the following structure:

my-awesome-app/
├── src/
│   └── main.mo       <-- Your server's main logic lives here!
├── dfx.json          <-- DFINITY Canister SDK configuration
├── mops.json         <-- Motoko package manager configuration
├── package.json      <-- npm scripts and dependencies
└── README.md         <-- A detailed guide for your new project

Next Steps: Your Project's Journey

Once your project is created, the generated README.md inside my-awesome-app/ will guide you through the following steps:

  1. Deploy Locally:

    • npm run start (Starts the local replica)
    • npm run deploy (Deploys your canister)
  2. Test with the Inspector:

    • npm run inspector (Launches the MCP Inspector tool to test your server's functionality)
  3. Enable Monetization (Optional):

    • Uncomment the auth code in src/main.mo and redeploy.
    • Create an API key using dfx canister call <your_canister_name> create_my_api_key '("My Key", ["read", "write"])'.
    • (Optional) Register your server with the auth service using npm run auth register.
  4. Publish to the App Store:

    • npm run app-store init (Creates your prometheus.yml manifest)
    • npm run app-store -- publish --app-version "0.1.0" (Publishes your server for verification)

Contributing

Contributions to create-motoko-mcp-server are welcome! Please open an issue or submit a pull request on our GitHub repository.

License

This project is licensed under the MIT License.