# Mercurius: 6.9 out of 10

Reasonable, with limits. 8th of 10 in [RPC and GraphQL libraries](https://elestia.ai/opensource/api-layers/index.md).

Mercurius is the GraphQL server plugin for Fastify. It is fast, actively maintained, and supports GraphQL 17 and @defer. It is a solid pick if you already run Fastify, but GraphQL Yoga or Apollo Server are the broader defaults for new GraphQL work.

**Best for:** Teams already on Fastify (or NestJS with the Fastify adapter) that want a fast GraphQL server with subscriptions, caching and JIT built in.

## Scores

- **Overall: 6.9** (likely 5.8 to 7.9)
  - Claude Opus 5.5 (6.0): It is a good, maintained GraphQL server and the natural choice on Fastify, where it would rate about 7. For most new GraphQL projects, GraphQL Yoga does the same job on any runtime with a larger ecosystem, and Apollo Server leads on tooling. It is tied to one framework and its adoption share is flat, so it stays in the middle of the category.
  - GPT-6.2 Sol (7.7): Mercurius is a strong pick for a new Fastify 5 GraphQL service, with high query throughput, built-in loaders, and regular releases. GraphQL Yoga is the stronger general-purpose choice when the runtime or HTTP framework is still open, and it has a larger indexed user base. The range reflects limited benchmarking on the current release and uncertainty about how many maintainers can ship it.
- **Needed by many: 3.6** (likely 2.6 to 4.7)
  - Claude Opus 5.5 (3.5): Only developers who build a GraphQL server on Fastify need it. That is a niche within the GraphQL part of a category that also covers RPC. The NestJS Fastify adapter widens the audience a little.
  - GPT-6.2 Sol (3.7): GraphQL serves a sizable share of API teams, and Mercurius targets the subset building on Fastify 5. NestJS reaches some of that same audience through its Fastify driver. The surveys measure GraphQL and Fastify separately, so their overlap remains uncertain.
- **Helps a lot: 7.6** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (7.0): It has a full feature set: subscriptions, JIT, loaders, caching, persisted queries, @defer and GraphQL 17. It also has TypeScript types and good docs. Independent benchmarks show it leading under load. What holds the score back: it is tied to Fastify, federation is weaker than in Apollo's and The Guild's ecosystems, and it has no schema builder of its own.
  - GPT-6.2 Sol (8.2): The stable release covers batching, persisted queries, subscriptions, and incremental delivery, with federation available through plugins. An independent benchmark found better query throughput than Apollo Server and Yoga, using older versions and in-memory workloads. Typed examples give coding agents a clear starting point, while schema-specific resolver types take extra setup. An open report about access to subscription variables and limited testing of the latest release leave room for uncertainty.
- **Holds up over time: 7.1** (likely 6.0 to 8.2)
  - Claude Opus 5.5 (7.0): It had 8 releases and 70 commits in the last year, the latest two days ago, and it has 177 contributors. It sits inside the Fastify ecosystem, which companies like Platformatic and NearForm back. Version 16 has avoided breaking changes for a long time. Commit volume is modest next to Yoga or Pothos, and its future depends on Fastify's.
  - GPT-6.2 Sol (7.2): Seventy commits and eight GitHub releases in the past year show ongoing maintenance, and GraphQL 17 support landed alongside continued GraphQL 16 support. The project lists NearForm and Platformatic as sponsors, and several contributors shipped changes. Recent tags are concentrated under one maintainer, and some subscription issues have stayed open for over a year. The depth of release coverage and the scale of ongoing funding remain uncertain.
- **Used widely: 4.4** (likely 3.3 to 5.5)
  - Claude Opus 5.5 (4.5): It had 1.37M downloads in 4 weeks. The ratio to a year ago is about 4.0, just under the 4.1 median, so it holds its share but is not gaining. Its 341 dependent repos are far below Apollo Server (5,993) and Yoga (10,200), and some downloads come in through @nestjs/mercurius rather than direct choice.
  - GPT-6.2 Sol (4.2): Four-week npm installs rose from 344,000 to 1.37 million, a 3.99× increase against the catalog's 4.1× baseline. That implies a small loss of relative install share, while Yoga gained ground at 4.74×. Ecosyste.ms found 341 dependent repositories and 99 packages, with the repository count close to Pothos and well below Apollo Server and Yoga. Automated installs and incomplete repository coverage leave the number of direct choices uncertain.
- **Vouched for: 5.8** (likely 4.7 to 7.2)
  - Claude Opus 5.5 (5.0): Production use is documented through NearForm case studies (daily.dev) and conference talks, and NestJS ships an official adapter for it. Independent benchmarks favour it. It has no survey presence and little community discussion, and much of the praise comes from NearForm, a company close to the project.
  - GPT-6.2 Sol (6.6): NestJS maintains a dedicated driver, and separate benchmark authors found good query performance with Mercurius. A Node.js user described it as a practical choice after using Apollo and barebones setups. NearForm's 2022 daily.dev case study adds a production example from a project sponsor. Recent named production evidence and Mercurius-specific satisfaction data are sparse.
- **Safe: 6.7** (likely 5.6 to 7.8)
  - Claude Opus 5.5 (6.5): It is MIT licensed, has 12 dependencies and fixes advisories quickly. But 2026 brought several: a depth-limit bypass, two CSRF issues and a high-severity heap exhaustion, the last two fixed this week. There is no Scorecard data, so release hygiene is unverified.
  - GPT-6.2 Sol (6.8): Mercurius uses the permissive MIT license and has 12 direct dependencies. The maintainer advisory list includes three 2026 issues absent from the bundle, all fixed by 16.12.2. The fixes for the high-severity denial of service and the moderate-severity CSRF issue shipped on the day of public disclosure. The missing OpenSSF Scorecard and unverified npm publishing controls leave uncertainty about supply-chain safeguards.

## Good

- It runs as a native Fastify plugin, using Fastify's hooks, logging and error handling, so REST and GraphQL can share one app.
- Built-in graphql-jit compilation, a loader for batching, and query caching give strong throughput under load.
- It keeps pace with the GraphQL spec: v16.12 added @defer, the HTTP QUERY method and GraphQL 17 support.
- Security fixes ship quickly in small, non-breaking minor releases.

## Bad

- It only works with Fastify, so it does not fit Express, edge runtimes or serverless platforms like Cloudflare Workers.
- Federation is a separate gateway plugin and has a smaller ecosystem than Apollo's or The Guild's tooling.
- Several advisories in 2026 (CSRF, heap exhaustion, depth-limit bypass) show a real attack surface around subscriptions and HTTP handling.
- It has far fewer dependents, tutorials and examples than Apollo Server or Yoga, so AI agents and newcomers have less to draw on.

## The numbers

- Downloads, 4 weeks: 1.4M
- In a year: ×4.0
- GitHub stars: 2.5k
- Commits, 12 months: 70
- Last npm release: Nov 2026
- Advisories, 24 months: 2
- Licence: MIT
- GitHub: https://github.com/mercurius-js/mercurius
- npm: https://www.npmjs.com/package/mercurius

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
