GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
4
フォーク
0
イシュー
0
README
Anthropic MCP Google Drive Client
This client uses the Anthropic Model Context Protocol (MCP) to generate a memory knowledge graph from Google Drive data. It processes files, emails, and calendar events to create a connected graph of information.
Features
- Connects to Google Drive, Gmail, and Google Calendar
- Processes documents, spreadsheets, and other file types
- Analyzes content using MCP to extract entities and relationships
- Stores the knowledge graph in Neo4j
- Handles folders recursively
- Maintains relationships between related items
Prerequisites
- Node.js 18 or higher
- Neo4j database instance
- Google Cloud project with Drive, Gmail, and Calendar APIs enabled
- MCP server running locally or remotely
Setup
- Clone the repository:
git clone <repository-url>
cd anthropic-mcp-drive-client
- Install dependencies:
npm install
Set up Google Cloud credentials:
- Create a project in Google Cloud Console
- Enable Drive, Gmail, and Calendar APIs
- Create OAuth 2.0 credentials
- Download the credentials and save as
credentials.json
in the project root
Configure environment variables:
export NEO4J_URI=neo4j://localhost:7687
export NEO4J_USERNAME=neo4j
export NEO4J_PASSWORD=your-password
export MCP_SERVER_COMMAND=path-to-mcp-server
- Build the project:
npm run build
Usage
Run the client:
npm start
The client will:
- Connect to the MCP server
- Authenticate with Google services
- Process your Google Drive folder
- Create a knowledge graph in Neo4j
Knowledge Graph Structure
The graph consists of these main node types:
- File: Documents, spreadsheets, etc.
- Email: Gmail messages
- Event: Calendar events
Relationships between nodes are created based on:
- Content analysis
- Temporal relationships
- References between items
- Shared metadata
Development
Run in development mode with auto-reload:
npm run dev
License
MIT