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

multi-graphql-mcp

v3.0.1

Published

Enhanced fork of [mcp-graphql](https://github.com/blurrah/mcp-graphql) with multi-endpoint support and LLM context optimization.

Readme

@ivanzzeth/mcp-graphql

Enhanced fork of mcp-graphql with multi-endpoint support and LLM context optimization.

What's New (v3.0.0)

  • Multi-endpoint: Single MCP instance connects to multiple GraphQL APIs
  • Schema summary: Compact summaries instead of full SDL in LLM context
  • Response offloading: Large responses written to file, summary returned inline
  • CSV export: Query results as CSV for data analysis
  • Pagination: Application-level max_rows truncation

Quick Start

Single endpoint (backward compatible)

{
  "mcpServers": {
    "graphql": {
      "command": "npx",
      "args": ["@ivanzzeth/mcp-graphql"],
      "env": {
        "ENDPOINT": "http://localhost:3000/graphql"
      }
    }
  }
}

Multi-endpoint (new)

Create mcp-graphql.config.json:

{
  "endpoints": [
    {
      "name": "orders",
      "url": "https://api.example.com/orders/graphql",
      "headers": { "Authorization": "Bearer xxx" }
    },
    {
      "name": "users",
      "url": "https://api.example.com/users/graphql"
    }
  ],
  "responseSizeThreshold": 2048,
  "outputDir": "~/.mcp-graphql/output/",
  "defaultEndpoint": "orders"
}
{
  "mcpServers": {
    "graphql": {
      "command": "npx",
      "args": ["@ivanzzeth/mcp-graphql"],
      "env": {
        "MCP_GRAPHQL_CONFIG": "/path/to/mcp-graphql.config.json"
      }
    }
  }
}

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | ENDPOINT | GraphQL endpoint URL (single-endpoint mode) | http://localhost:4000/graphql | | HEADERS | JSON string of request headers | {} | | ALLOW_MUTATIONS | Enable mutation operations | false | | NAME | MCP server name | mcp-graphql | | SCHEMA | Path/URL to schema file (skip introspection) | - | | MCP_GRAPHQL_CONFIG | Path to multi-endpoint config file | - | | RESPONSE_SIZE_THRESHOLD | Bytes before offloading to file | 2048 | | MCP_GRAPHQL_OUTPUT_DIR | Directory for output files | /tmp/mcp-graphql/ |

Tools

introspect-schema

Introspect the GraphQL schema with context-aware detail levels.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | endpoint | string | default | Endpoint name to introspect | | detail | summary | full | types | summary | Detail level | | types | string[] | - | Type names (when detail=types) |

Summary mode (default) returns compact markdown with type/field counts and root query fields. Full SDL is always written to file for reference.

query-graphql

Execute GraphQL queries with export and pagination support.

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | query | string | required | GraphQL query | | variables | string | - | JSON variables | | endpoint | string | default | Endpoint name | | output_format | json | csv | json | Output format | | max_rows | number | - | Truncate results |

Large JSON responses are automatically written to file with an inline summary. CSV output is always written to file.

Config File Format

{
  "endpoints": [
    {
      "name": "my-api",           // Endpoint identifier
      "url": "https://...",       // GraphQL URL (required)
      "headers": {},              // Request headers
      "allowMutations": false,    // Enable mutations
      "schema": "./schema.graphql" // Optional local/remote schema
    }
  ],
  "responseSizeThreshold": 2048,  // Bytes before file offload
  "outputDir": "/tmp/mcp-graphql/", // Output directory
  "defaultEndpoint": "my-api"     // Default endpoint name
}

Security

Mutations are disabled by default per-endpoint. Enable with "allowMutations": true in endpoint config or ALLOW_MUTATIONS=true env var.

License

MIT