spirrow-prismind

spirrow-prismind

MCP server that integrates Google Drive, RAG, and memory services for context-aware knowledge management, enabling session, project, document, catalog, and knowledge operations for AI assistants.

Category
访问服务器

README

Spirrow-Prismind

License: MIT Python 3.11+ MCP

MCP Server for Context-Aware Knowledge Management

An MCP (Model Context Protocol) server that integrates multiple data sources—Google Drive, RAG (Retrieval-Augmented Generation), and MCP Memory Server—to provide context-aware knowledge management for AI assistants.

Note: 日本語版は README.ja.md を参照してください。

Features

  • Session Management: Save and restore work states, automatically suggest relevant documents
  • Project Management: Switch between multiple projects, search for similar projects
  • Document Operations: Google Docs integration with automatic catalog registration
  • Catalog Management: Semantic search with Google Sheets synchronization
  • Knowledge Management: RAG-based knowledge storage and retrieval

Requirements

  • Python 3.11 or higher
  • Google Cloud project with OAuth 2.0 credentials
  • RAG server (ChromaDB compatible)
  • MCP Memory Server (optional)

Installation

# Clone the repository
git clone https://github.com/SpirrowGames/spirrow-prismind.git
cd spirrow-prismind

# Install the package
pip install -e .

Configuration

  1. Copy the example config:

    cp config.toml.example config.toml
    
  2. Set up Google OAuth credentials:

    • Create a project in Google Cloud Console
    • Enable Google Docs, Drive, and Sheets APIs
    • Create OAuth 2.0 credentials (Desktop application)
    • Download credentials.json and place it in the config directory
  3. Configure external services in config.toml:

    • RAG Server endpoint (ChromaDB compatible)
    • MCP Memory Server connection (optional)

Usage

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "prismind": {
      "command": "spirrow-prismind",
      "env": {
        "PRISMIND_CONFIG": "/path/to/config.toml"
      }
    }
  }
}

With Claude Code

Add to your Claude Code settings:

{
  "mcpServers": {
    "prismind": {
      "command": "spirrow-prismind",
      "env": {
        "PRISMIND_CONFIG": "/path/to/config.toml"
      }
    }
  }
}

Available Tools

Session Management

Tool Description
start_session Start a session and restore previous state
end_session End session and save state for handoff
save_session Save intermediate session state
list_sessions List all sessions for a project
delete_session Delete a specific session
list_context_authors List the distinct context authors/roles saved for a project

start_session / end_session / save_session / delete_session accept an optional author argument. It adds a partition segment to the session key (prismind:session:{project}:{user}:{author}), so one project+user can hold multiple independent contexts — one per author/role. An empty author keeps the legacy key for backward compatibility.

Project Management

Tool Description
setup_project Set up a new project
switch_project Switch to another project
list_projects List all projects
update_project Update project settings
delete_project Delete a project

Document Operations

Tool Description
get_document Search and retrieve documents
create_document Create a new document
update_document Update an existing document

Catalog Operations

Tool Description
search_catalog Search the document catalog
sync_catalog Sync catalog (Sheets → RAG)

Knowledge Operations

Tool Description
add_knowledge Add knowledge entries
search_knowledge Search knowledge base
update_knowledge Update an existing knowledge entry
delete_knowledge Delete a knowledge entry

Progress Management

Tool Description
get_progress Get project progress with phases and tasks
add_task Add a new task to progress sheet
get_task Get single task details by ID
update_task Update task (name, description, status, priority, phase move)
delete_task Delete task with blocked_by reference cleanup
update_task_status Update task status
start_task Mark task as in_progress
complete_task Mark task as completed
block_task Mark task as blocked

Architecture

┌──────────────────────────────────────────────────────────────┐
│                       MCP Server                             │
│  ┌────────────────────────────────────────────────────────┐  │
│  │                        Tools                           │  │
│  │  ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐      │  │
│  │  │ Session │ │ Project │ │Document │ │Knowledge│ ...  │  │
│  │  └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘      │  │
│  └───────┼──────────┼──────────┼──────────┼─────────────┘  │
│          │          │          │          │                 │
│  ┌───────┴──────────┴──────────┴──────────┴─────────────┐  │
│  │                    Integrations                       │  │
│  │  ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐         │  │
│  │  │  RAG   │ │ Memory │ │  Docs  │ │ Drive  │         │  │
│  │  │ Client │ │ Client │ │ Client │ │ Client │         │  │
│  │  └────┬───┘ └────┬───┘ └────┬───┘ └────┬───┘         │  │
│  └───────┼──────────┼──────────┼──────────┼─────────────┘  │
└──────────┼──────────┼──────────┼──────────┼────────────────┘
           │          │          │          │
           ▼          ▼          ▼          ▼
      ┌────────┐ ┌────────┐ ┌────────────────────┐
      │ChromaDB│ │ Memory │ │    Google APIs     │
      │  RAG   │ │ Server │ │ Docs/Drive/Sheets  │
      └────────┘ └────────┘ └────────────────────┘

Development

Setup

# Install with dev dependencies
pip install -e ".[dev]"

Testing

pytest

Code Quality

# Format code
ruff format .

# Lint and fix
ruff check --fix .

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Related Projects

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选