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

hardcover-mcp

v1.0.0

Published

MCP server for the Hardcover GraphQL API.

Readme

hardcover-mcp

CI npm version

MCP server for the Hardcover GraphQL API.

Features

  • Read access for books, authors, editions, users, publishers, characters, series, prompts, lists, user libraries, and activity feeds
  • Write access for lists, prompts, prompt answers, user-library entries, and read-history records
  • Structured outputs designed for MCP clients instead of raw GraphQL payloads
  • One activity tool that supports for_you, global, and user-specific modes

Tools

Read tools

  • hardcover_search
  • hardcover_get_book
  • hardcover_get_author
  • hardcover_get_edition
  • hardcover_get_user
  • hardcover_get_publisher
  • hardcover_get_character
  • hardcover_get_series
  • hardcover_get_activity_feed
  • hardcover_get_user_library
  • hardcover_get_list
  • hardcover_get_prompt

Write tools

  • hardcover_create_list
  • hardcover_update_list
  • hardcover_delete_list
  • hardcover_add_book_to_list
  • hardcover_update_list_book
  • hardcover_remove_book_from_list
  • hardcover_follow_list
  • hardcover_unfollow_list
  • hardcover_set_user_book
  • hardcover_delete_user_book
  • hardcover_add_user_book_read
  • hardcover_update_user_book_read
  • hardcover_delete_user_book_read
  • hardcover_create_prompt
  • hardcover_update_prompt
  • hardcover_delete_prompt
  • hardcover_follow_prompt
  • hardcover_unfollow_prompt
  • hardcover_add_prompt_answer
  • hardcover_update_prompt_answer
  • hardcover_delete_prompt_answer

The current surface mixes read tools with focused write tools for lists, user-library records, and prompts. hardcover_search returns normalized summaries per entity type instead of the raw search payload. hardcover_get_activity_feed supports for_you, global, and user-specific activity in one tool.

Requirements

Setup

  1. Install dependencies:

    npm install
  2. Set your Hardcover token:

    HARDCOVER_API_TOKEN="Bearer <token from hardcover.app/account/api>"

    Use the token value exactly as Hardcover shows it on hardcover.app/account/api. The server forwards that value directly in the Authorization header.

  3. Build the server:

    npm run build

Run locally

npm start

Install via npm

Run directly with npx:

npx -y hardcover-mcp

Validate locally

Run the offline smoke test to verify the built server starts and registers the expected tools:

npm run check

Run the live smoke test to hit the real Hardcover API with read-only calls:

HARDCOVER_API_TOKEN="Bearer <token from hardcover.app/account/api>" npm run smoke:live

Example MCP client config

Using the published npm package:

{
  "mcpServers": {
    "hardcover": {
      "command": "npx",
      "args": ["-y", "hardcover-mcp"],
      "env": {
        "HARDCOVER_API_TOKEN": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}

Using a local checkout:

{
  "mcpServers": {
    "hardcover": {
      "command": "node",
      "args": ["/absolute/path/to/hardcover-mcp/dist/index.js"],
      "env": {
        "HARDCOVER_API_TOKEN": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}

Notes

  • Default endpoint: https://api.hardcover.app/v1/graphql
  • Override the endpoint with HARDCOVER_API_URL
  • Hardcover documents a 60 requests/minute rate limit and a maximum query depth of 3
  • Ambiguous exact-name lookups for authors and series may include _selection.alternatives in the response so callers can refine by id or slug
  • CI runs npm run check on pushes to master and on pull requests
  • List privacy values in the MCP tools are public, followers_only, and private