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

mcp-routine

v0.3.0

Published

Stitch MCP actions together into reusable routines

Readme

MCP Routine

🌅🍳☕️📰🚗💼 Routine is an MCP server that lets you create custom tools on the fly. It stitches actions executed by multiple MCP tools into a reusable routine.

Why?

If you perform the same sequence of tool calls over and over, a routine will save you time and removes prompting inconsistencies. A routine includes full context of the exact set of tools and inputs needed to execute a full task.

Installation

Copy the following into your MCP client's JSON file

{
  "mcpServers": {
    "myRoutines": {
      "command": "npx",
      "args": ["-y", "mcp-routine"],
      "env": {
        "FILENAME": "/path/to/your/mcp-routines.json"
      }
    }
  }
}

How to use it?

  1. Perform your task by guiding AI with your prompt to execute tools.
  2. Once the task is completed, instruct AI to create a new routine for your task.
  3. Refresh your MCP client to update the tools. Then use it to execute the same sequence of tools.

The MCP server includes the following tools to manage routines

create-routine
load-routines
update-routine
delete-routine

Examples

Research a topic, then write the result into a new page in a given folder.

**User**: "add an Onboarding page to the Getting started page

**AI**: I'll help you add an "Onboarding" page to the Getting Started page. First, I'll need to find the Getting Started page ID.

Let me search for it:
Great, I found the Getting Started page. Now I'll create a new "Onboarding" page under it:

I've successfully created a new page titled "Onboarding" under the Getting Started page. The page has been created with a basic title, and you can now access it at the URL provided in the response. Would you like me to add any specific content to this new Onboarding page?

**User**:Yes, add some placeholder information for a standard onboarding experience

**AI**: I'll add some structured placeholder content to the Onboarding page to outline a standard onboarding experience.

**User**: now convert all these steps into a route to insert a page into a parent page

**AI**: I'll create a routine that captures the steps we just performed to insert a page into a parent page with structured content. This will make it reusable for future similar tasks.

I've created a routine called insert_structured_page that captures the workflow we used. The routine has three main steps:
1. Search for the parent page using its title to get the page ID
2. Create a new page under the found parent page
3. Add structured content to the new page with sections and bullet points

The routine is parameterized so you can customize:
- parent_page_title: The title of the parent page to search for
- new_page_title: The title for the new page
- welcome_message: Introduction text for the page
- section1_title: Title for the first section (can add more sections as needed)
- bullet_point1, bullet_point2, bullet_point3: Bullet points under sections
- help_message: The help/support message at the bottom

To use this routine, you would just need to provide these parameters with your desired content, and it will create a structured page with consistent formatting.

Development

Build

npm run build

Execute

npx -y --prefix /path/to/local/mcp-routine routine

Publish

npm publish --access public