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

flock-mcp-server

v1.0.0

Published

MCP server for Flock - query and manage your todos and goals from Claude

Readme

Flock MCP Server

An MCP (Model Context Protocol) server that lets you query and manage your Flock todos and goals from Claude Desktop or other MCP-compatible clients.

Quick Install

  1. Get your API token from Flock Account Settings
  2. Add to your Claude Desktop config:

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

{
  "mcpServers": {
    "flock": {
      "command": "npx",
      "args": ["-y", "flock-mcp-server"],
      "env": {
        "FLOCK_API_TOKEN": "your_token_here"
      }
    }
  }
}
  1. Restart Claude Desktop

That's it! Ask Claude "What's on my todo list?" to get started.


Features

Todo Management

  • list_todos - List your todos (today, tomorrow, or inbox)
  • add_todo - Create a new todo with optional goal assignment
  • complete_todo - Mark a todo as complete
  • uncomplete_todo - Mark a todo as incomplete
  • get_history - Get your todo history for past days

Goals

  • list_goals - List all your active goals with stats
  • get_goal - Get details about a specific goal

Reviews & Analytics

  • get_weekly_reviews - Get weekly stats and review notes
  • get_monthly_review - Get monthly review with week-by-week breakdown
  • get_yearly_review - Get year-in-review stats and patterns

Prerequisites

  • Node.js 18 or later
  • A Flock account with an API token

Installation

1. Get your API token

  1. Log in to Flock
  2. Go to Account Settings (click your avatar, then "My Account")
  3. Scroll to the API Token section
  4. Copy your token

2. Build the MCP server

From the mcp-server directory:

npm install
npm run build

3. Configure Claude Desktop

Edit your Claude Desktop config file:

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

Add the Flock server configuration:

{
  "mcpServers": {
    "flock": {
      "command": "node",
      "args": ["/absolute/path/to/flock/mcp-server/dist/index.js"],
      "env": {
        "FLOCK_API_URL": "https://www.flockwith.me",
        "FLOCK_API_TOKEN": "your_api_token_here"
      }
    }
  }
}

Replace:

  • /absolute/path/to/flock/mcp-server with the actual path to this directory
  • your_api_token_here with your Flock API token
  • For local development, change FLOCK_API_URL to http://localhost:3000

4. Restart Claude Desktop

Quit and reopen Claude Desktop for the changes to take effect.

Usage

Once configured, you can ask Claude to interact with your Flock data:

  • "What's on my todo list today?"
  • "Add 'review PR' to my todos for tomorrow"
  • "Show me my goals"
  • "Complete todo 123"
  • "Add 'write tests' to inbox"
  • "What have I done for the 'work' goal?"

Development

Running locally

# Install dependencies
npm install

# Build
npm run build

# Run with environment variables (local dev)
FLOCK_API_URL=http://localhost:3000 FLOCK_API_TOKEN=your_token node dist/index.js

# Or for production
FLOCK_API_URL=https://www.flockwith.me FLOCK_API_TOKEN=your_token node dist/index.js

Watch mode

npm run dev

This rebuilds on file changes.

API Endpoints Used

The MCP server calls these Flock API endpoints:

| Endpoint | Method | Description | |----------|--------|-------------| | /api/v1/user | GET | Get current user info | | /api/v1/todos?scope=today\|tomorrow\|inbox | GET | List todos | | /api/v1/todos | POST | Create a todo | | /api/v1/todos/:id/complete | PATCH | Mark todo complete | | /api/v1/todos/:id/uncomplete | PATCH | Mark todo incomplete | | /api/v1/todos/history | GET | Get todo history | | /api/v1/goals | GET | List goals | | /api/v1/goals/:id | GET | Get goal details | | /api/v1/weekly_reviews | GET | Get weekly review stats | | /api/v1/monthly_reviews/:year/:month | GET | Get monthly review stats | | /api/v1/yearly_reviews/:year | GET | Get yearly review stats |

All endpoints require Bearer token authentication.

Troubleshooting

"FLOCK_API_TOKEN environment variable is required"

Make sure your Claude Desktop config includes the env section with FLOCK_API_TOKEN.

"401 Unauthorized"

Your API token may be invalid. Go to Flock Account Settings and regenerate it.

Server not appearing in Claude Desktop

  1. Make sure the path to dist/index.js is absolute (not relative)
  2. Make sure you've built the project (npm run build)
  3. Restart Claude Desktop completely (quit and reopen)

Connection refused

Make sure your Flock server is running at the URL specified in FLOCK_API_URL.