PG

pedramamini/granolamcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

47 stars 15 forks 质量 66 趋势 0Apache-2.0

pedramamini/granolamcp 是一个从 https://github.com/pedramamini/granolamcp. 导入的 MCP 服务器候选人。

概览

pedramamini/granolamcp 是一个从 https://github.com/pedramamini/granolamcp. 导入的 MCP 服务器候选人。

概述(AI 翻译)

一个全面的Python库和CLI工具,用于访问和分析 Granola.ai 会议数据,配备了完整的MCP(模型上下文协议)服务器,用于AI集成。

📋 更新日志

2025-07-04 - 新收集命令 🎯

  • 新:新增granola collect命令,用于导出会议中的话语
  • 功能:自动过滤麦克风音频(你的语音)与系统音频(你听到的内容)
  • 功能:按天将导出文本整理成YYYY-MM-DD.txt文件
  • 功能:支持灵活的日期范围(--last 7d,--from/--to)
  • 功能:可选时间戳和会议元数据包含
  • 功能:最小的词语过滤以排除短语
  • 用例:非常适合用自己的语音创建LLM训练数据集

概述

GranolaMCP通过多种接口提供对 Granola.ai 会议数据的完整访问:

  • ** 📚 Python 库** - 程序访问会议、文字记录和摘要
  • ** 💻 命令行界面** - 丰富的CLI功能,具备高级过滤和分析功能
  • ** 🤖 MCP 服务器** - 用于 AI 集成的模型上下文协议服务器(Claude 等)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

GranolaMCP

A comprehensive Python library and CLI tool for accessing and analyzing Granola.ai meeting data, featuring a complete MCP (Model Context Protocol) server for AI integration.

📋 Changelog

2025-07-04 - New Collect Command 🎯

  • NEW: Added granola collect command for exporting your own words from meetings
  • FEATURE: Automatically filters microphone audio (your spoken words) vs system audio (what you heard)
  • FEATURE: Organizes exported text by day into YYYY-MM-DD.txt files
  • FEATURE: Supports flexible date ranges (--last 7d, --from/--to)
  • FEATURE: Optional timestamps and meeting metadata inclusion
  • FEATURE: Minimum word filtering to exclude short utterances
  • USE CASE: Perfect for creating LLM training datasets from your own speech

Overview

GranolaMCP provides complete access to Granola.ai meeting data through multiple interfaces:

  • 📚 Python Library - Programmatic access to meetings, transcripts, and summaries
  • 💻 Command Line Interface - Rich CLI with advanced filtering and analytics
  • 🤖 MCP Server - Model Context Protocol server for AI integration (Claude, etc.)
  • 📊 Analytics & Visualization - Comprehensive statistics with ASCII charts

Data Source

GranolaMCP operates entirely on local cache files - it reads meeting data directly from Granola’s local cache file (cache-v3.json) without making any API calls to Granola’s servers. This approach provides:

  • 🔌 No Network Dependency - Works completely offline
  • ⚡ Fast Access - Direct file system access with no API rate limits
  • 🔒 Privacy Focused - Your meeting data never leaves your machine
  • 🛡️ No Authentication - No need to manage API keys or tokens

Alternative Approach Available: While not implemented in this library, it’s technically possible to extract access tokens from Granola’s supabase.json configuration file and communicate directly with the Granola API. However, the cache-based approach provides better performance, privacy, and reliability for most use cases.

✨ Key Features

Core Data Access

  • 🔍 Smart JSON Parsing - Handles Granola’s complex double-JSON cache structure
  • 📝 AI Summary Extraction - Separates AI-generated summaries from human notes
  • 💬 Full Transcript Access - Complete speaker-identified transcripts with timing
  • 📁 Folder Organization - Meeting organization by folders (OPSWAT, Mozilla, Personal, etc.)
  • 🕐 Accurate Duration Calculation - Real meeting duration from transcript timing
  • 🏷️ Rich Metadata - Participants, timestamps, and meeting context

Advanced CLI Interface

  • 🎯 Intelligent Filtering - Filter by date, participant, title, or folder
  • 📊 Table Display - Clean tables showing transcript/summary word counts
  • 🔍 Smart Search - Search across titles, content, and participants
  • 📈 Analytics Dashboard - Meeting frequency, duration patterns, and trends
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "granola-mcp": { "command": "python", "args": ["-m", "granola_mcp.mcp"], "env": { "GRANOLA_CACHE_PATH": "/Users/[username]/Library/Application Support/Granola/cache-v3.json" } } } }