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

@leonvanzyl/mcp-todo-server

v1.0.3

Published

MCP server for TODO application

Readme

MCP Todo Server

A Model Context Protocol (MCP) server for managing a todo list application.

Features

  • List all todos
  • Add new todos
  • Mark todos as completed
  • Update todo details
  • Delete individual todos
  • Delete all todos

Technologies Used

  • TypeScript
  • SQLite (for local database)
  • Model Context Protocol (MCP)
  • Zod (for validation)

Prerequisites

  • Node.js (v16 or higher)
  • npm

Installation

Global Installation

npm install -g @leonvanzyl/mcp-todo-server

Local Installation

npm install @leonvanzyl/mcp-todo-server

Usage

Command Line Interface

After installing globally, you can run the server using:

mcp-todo-server

Options

  • --db <path>: Path to the SQLite database file (default: ./todo.db)
  • --port <number>: Port for HTTP server (default: 3000, only used with --http)
  • --http: Use HTTP transport instead of stdio (Note: HTTP transport may not be available in all MCP SDK versions)
  • --help: Show help message

Note: The HTTP transport option requires a compatible version of the MCP SDK. If the HTTP transport is not available, the server will automatically fall back to stdio transport.

Using in MCP Client Configuration

You can use this server in your MCP client configuration:

{
  "mcpServers": {
    "todo": {
      "command": "npx",
      "args": ["-y", "@leonvanzyl/mcp-todo-server"]
    }
  }
}

Or with custom options:

{
  "mcpServers": {
    "todo": {
      "command": "npx",
      "args": [
        "-y",
        "@leonvanzyl/mcp-todo-server",
        "--db",
        "/path/to/custom.db"
      ]
    }
  }
}

Programmatic Usage

You can also use the server programmatically in your Node.js applications:

import todoServer from "@leonvanzyl/mcp-todo-server";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

// Connect to stdio transport
const transport = new StdioServerTransport();
await todoServer.connect(transport);

Available Tools

The server provides the following MCP tools:

  • listTodos: Get all todos
  • addTodo: Add a new todo
  • completeTodo: Mark a todo as completed
  • updateTodo: Update a todo's title or completion status
  • deleteTodo: Delete a todo
  • deleteAllTodos: Delete all todos

Development

Setup

git clone https://github.com/yourusername/mcp-todo-server.git
cd mcp-todo-server
npm install

Build

npm run build

Run in Development Mode

npm run dev

Troubleshooting

HTTP Transport Not Available

If you encounter an error related to the HTTP transport not being available, it means your version of the MCP SDK does not include the HTTP transport module. In this case, the server will automatically fall back to using stdio transport.

To use HTTP transport, you may need to update your MCP SDK version or use a different transport method.

Publishing

To publish the package to npm:

npm login
npm publish --access public

License

ISC