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

@toriihq/torii-mcp

v0.1.3

Published

Model Context Protocol server for Torii API

Readme

Torii MCP Server

A Model Context Protocol (MCP) server for Torii — the SaaS management platform. It provides tools that AI assistants can use to query apps, users, contracts, roles, audit logs, and more.

Setup

You need a Torii API key. Get one from your Torii admin settings.

Claude Desktop

  1. Open Claude Desktop Settings > Developer > Edit Config
  2. Add to claude_desktop_config.json:
{
  "mcpServers": {
    "torii": {
      "command": "npx",
      "args": ["-y", "@toriihq/torii-mcp"],
      "env": {
        "TORII_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
  1. Restart Claude Desktop

Cursor

  1. Open Cursor Settings > MCP > Add new global MCP Server
  2. Select type "command" and add:
{
  "mcpServers": {
    "torii": {
      "command": "npx",
      "args": ["-y", "@toriihq/torii-mcp"],
      "env": {
        "TORII_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
  1. Click Save

Other MCP Clients

Any MCP-compatible client can use this server. The configuration is the same — run npx -y @toriihq/torii-mcp with the TORII_API_KEY environment variable set.

Available Tools

| Tool | Description | |------|-------------| | get_org_info | Get organization info (name, domain) — verify your connection | | list_apps | List apps with filtering, sorting, aggregations, and pagination | | get_app | Get a specific app by ID | | get_app_fields | List available fields for app queries | | get_app_users | List users of a specific app | | list_users | List users with filtering, sorting, aggregations, and pagination | | get_user | Get a specific user by ID | | get_user_fields | List available fields for user queries | | get_user_apps | List apps a specific user has access to | | list_contracts | List all contracts | | get_contract | Get a specific contract by ID | | get_contract_fields | List available fields for contract queries | | list_roles | List all admin roles | | get_audit_logs | Retrieve audit logs with filtering by entity and time range |

Example Questions

  • What apps does my organization use?
  • Who has admin access?
  • What contracts are expiring in the next 30 days?
  • Show me all apps added last month
  • How many users are using Slack?

Configuration

| Environment Variable | Required | Description | |---------------------|----------|-------------| | TORII_API_KEY | Yes | Your Torii API key | | TORII_API_URL | No | Custom API base URL (default: https://api.toriihq.com/v1.0) |

Developing

Prerequisites

  • Node.js v16+
  • yarn

Setup

yarn install
yarn build

Run locally

export TORII_API_KEY=your_api_key
yarn start       # production
yarn dev         # watch mode

Inspect with MCP Inspector

yarn inspect

License

UNLICENSED