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

@sjalq/todoist-mcp-lite

v1.0.5

Published

Minimal Todoist MCP server with direct API passthrough - pure functional JS

Readme

@sjalq/todoist-mcp-lite

Minimal Todoist MCP server with direct API passthrough. Built with pure functional principles and minimal code.

Features

  • ✨ Single tool with direct Todoist REST API v2 passthrough
  • 🚀 Supports all HTTP methods (GET, POST, PUT, PATCH, DELETE)
  • 🔒 CLI --token flag or environment variable authentication
  • 📦 NPX-ready - no installation required
  • 🧪 Comprehensive test suite (property-based + integration + MCP protocol tests)
  • 🎯 Pure functional JavaScript - minimal dependencies
  • 💡 Token-efficient tool descriptions

Getting Your Todoist API Token

  1. Log in to Todoist
  2. Go to Settings → Integrations → Developer
  3. Copy your API token from the "API token" section

Usage

Via NPX (recommended)

npx @sjalq/todoist-mcp-lite --token YOUR_TODOIST_TOKEN

Or with environment variable:

export TODOIST_API_TOKEN=YOUR_TODOIST_TOKEN
npx @sjalq/todoist-mcp-lite

In Claude Desktop config

Add to your ~/.claude.json:

{
  "mcpServers": {
    "todoist": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@sjalq/todoist-mcp-lite"],
      "env": {
        "TODOIST_API_TOKEN": "your_token_here"
      }
    }
  }
}

Or with --token flag:

{
  "mcpServers": {
    "todoist": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@sjalq/todoist-mcp-lite", "--token", "your_token_here"]
    }
  }
}

Tool

The server exposes a single tool: todoist_api

Parameters

  • endpoint (string, required): API endpoint (e.g., /tasks, /projects/123)
  • method (string, required): HTTP method (GET, POST, PUT, PATCH, DELETE)
  • body (object, optional): Request body for POST/PUT/PATCH requests

Response

Returns JSON with:

  • status: HTTP status code
  • ok: boolean indicating success
  • data: Response data from Todoist API (or error object)

Example

{
  "endpoint": "/tasks",
  "method": "POST",
  "body": {
    "content": "Buy milk",
    "due_string": "tomorrow"
  }
}

API Documentation

Full Todoist REST API v2 docs: https://developer.todoist.com/rest/v2

Development

Clone and Install

git clone https://github.com/sjalq/todoist-mcp-lite.git
cd todoist-mcp-lite
npm install

Running Tests

Property-based tests run without API token:

npm test

Integration and MCP protocol tests require a token:

export TODOIST_API_TOKEN=your_token
npm test

Test suite includes:

  • 4 property-based tests (pure function validation)
  • 6 integration tests (real API calls)
  • 4 MCP protocol tests (full server/client interaction)

Local Testing with MCP Inspector

npx @modelcontextprotocol/inspector node index.js --token YOUR_TOKEN

Then open http://localhost:6274 to interactively test the server.

Architecture

Pure functional design with three core functions:

  • getToken(args) - Extract token from CLI args or environment
  • callTodoist(token) - Curried API caller returning async function
  • createServer(apiCall) - MCP server factory with tool registration

Zero mocks, zero state, just functions.

License

ISC - see LICENSE file for details.

Contributing

Issues and PRs welcome at https://github.com/sjalq/todoist-mcp-lite