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

@openpets/granola

v1.0.2

Published

Access your Granola.ai meeting notes, transcripts, and recordings. Search meetings, retrieve transcripts, and chat with your meeting data using Granola's official MCP server with OAuth authentication.

Readme

Granola Plugin

Access your Granola.ai meeting notes, transcripts, and recordings through OpenPets. Search meetings, retrieve transcripts, and query your meeting data using natural language via Granola's official MCP server.

Features

  • Query Meetings - Ask conversational questions about your meetings
  • List Meetings - Browse recent meetings with details
  • Search Content - Find specific meetings by keywords or topics
  • Get Transcripts - Access raw meeting transcripts (paid tiers only)
  • OAuth Authentication - Secure browser-based authentication (no API keys!)

Quick Start

1. No Configuration Required!

Unlike most plugins, Granola uses OAuth authentication. No environment variables or API keys needed!

2. Test the Plugin

cd pets/granola
opencode run "list my recent meetings from Granola" --print-logs

On first use, a browser window will open automatically for OAuth authentication.

3. Example Queries

# List recent meetings
opencode run "list my recent meetings from Granola"

# Search for specific topics
opencode run "search Granola meetings about project planning"

# Ask conversational questions
opencode run "what did we discuss in yesterday's standup?"

# Get transcript (paid tiers only)
opencode run "show me the transcript from my last meeting"

Authentication

Granola uses OAuth 2.0 authentication via browser popup:

  1. Run any Granola query
  2. Browser opens automatically to authenticate
  3. Authorize the OpenPets integration
  4. Return to your terminal - you're connected!

No API keys, no environment variables, no hassle.

Available Tools

| Tool | Description | |------|-------------| | granola-test-connection | Check plugin status and configuration | | granola-query-meetings | Ask conversational questions about meetings | | granola-list-meetings | Browse meetings with ID, title, date, attendees | | granola-get-meetings | Search meetings by content or keywords | | granola-get-transcript | Access raw meeting transcripts (paid only) |

Requirements

Granola Account

  • Free Plan: Query notes from last 30 days
  • Paid Plan: Full history access + transcript retrieval
  • Rate Limit: ~100 requests per minute

Supported AI Tools

  • Claude (paid plans)
  • ChatGPT (Plus/Pro/Business/Enterprise)
  • OpenCode (all plans)

Limitations

  • Only meetings you own are accessible (shared meetings excluded)
  • Transcripts require paid Granola subscription
  • Basic plan limited to 30 days of history
  • OAuth authentication requires browser access

Example Workflows

Search and Review

# Find relevant meetings
opencode run "search Granola meetings about quarterly review"

# Get details
opencode run "show me details for meeting ID abc123"

# Read transcript
opencode run "get the transcript from that meeting"

Daily Standup Review

opencode run "what topics came up in today's standup meeting?"

Weekly Summary

opencode run "list all my meetings from this week and summarize key decisions"

Troubleshooting

"Unauthorized" Error

Solution: Re-authenticate by running any query. Browser will open for OAuth.

"No meetings found"

Check:

  • You have meetings in your Granola account
  • Your account has access (Basic = last 30 days only)
  • Meetings are owned by you (not just shared to you)

OAuth popup blocked

Solution:

  1. Allow popups in your browser for localhost
  2. Run query again to retry authentication

Rate limit exceeded

Solution: Wait a few moments. Rate limit is ~100 requests/minute.

Testing

# Run test scenarios
bun test:pet granola --query "list my recent meetings from Granola"

# With follow-ups
bun test:pet granola \
  --query "list my recent meetings" \
  --follow "search for meetings about planning" \
  --follow "what decisions were made?"

# Interactive mode
bun test:pet granola --interactive

Development

Project Structure

pets/granola/
├── index.ts           # Main plugin entry
├── mcp.ts             # MCP tool definitions
├── package.json       # Plugin configuration
├── opencode.json      # OpenCode loader config
├── README.md          # This file
└── .env.example       # Environment template (empty for OAuth)

Adding Custom Tools

To extend with custom logic:

// index.ts
import mcpTools from "./mcp"

const customTools: ToolDefinition[] = [
  {
    name: "granola-custom-action",
    description: "Your custom tool",
    schema: z.object({ /* ... */ }),
    async execute(args) {
      // Your logic
    }
  }
]

return createPlugin([
  testConnectionTool,
  ...customTools,
  ...mcpTools
])

Debugging

Enable debug logs:

export DEBUG=openpets:granola
opencode run "your query" --print-logs

Documentation

FAQ

Do I need an API key?

No! Granola uses OAuth authentication via browser. No API keys or environment variables required.

Can I access shared meetings?

No, only meetings you own are accessible through the MCP server.

What's included in the free plan?

Basic plan gives you 30 days of meeting history. Transcripts require a paid subscription.

How do I authenticate?

Just run any query. A browser window will open automatically for OAuth authentication.

Can I revoke access?

Yes, go to your Granola account settings to manage connected applications.

Support

License

MIT - See LICENSE for details.