Логотип Dataproc MCP Server

Dataproc MCP Server

Сообщество
dipseth

Private MCP Dataproc server repository

Издательdipseth
Репозиторийdataproc-mcp
ЯзыкTypeScript
Форки
2
Звёзды
9
Доступные инструменты
0
Тип транспортаstdio
Категории
ЛицензияMIT
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    Dataproc MCP Server предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 0

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в предпочитаемом MCP-клиенте.

  • Показатели интереса к открытому проекту

    Звёзды: 9, форки: 2 — в связанном репозитории.

Dataproc MCP Server

npm version npm downloads Build Status Release Status Coverage Status License: MIT Node.js Version TypeScript MCP Compatible semantic-release

A production-ready Model Context Protocol (MCP) server for Google Cloud Dataproc operations with intelligent parameter injection, enterprise-grade security, and comprehensive tooling. Designed for seamless integration with Roo (VS Code).

🚀 Quick Start

Recommended: Roo (VS Code) Integration

Add this to your Roo MCP settings:

json
{
  "mcpServers": {
    "dataproc": {
      "command": "npx",
      "args": ["@dipseth/dataproc-mcp-server@latest"],
      "env": {
        "LOG_LEVEL": "info"
      }
    }
  }
}

With Custom Config File

json
{
  "mcpServers": {
    "dataproc": {
      "command": "npx",
      "args": ["@dipseth/dataproc-mcp-server@latest"],
      "env": {
        "LOG_LEVEL": "info",
        "DATAPROC_CONFIG_PATH": "/path/to/your/config.json"
      }
    }
  }
}

Alternative: Global Installation

bash
# Install globally
npm install -g @dipseth/dataproc-mcp-server

# Start the server
dataproc-mcp-server

# Or run directly
npx @dipseth/dataproc-mcp-server@latest

5-Minute Setup

  1. Install the package:

    bash
    npm install -g @dipseth/dataproc-mcp-server@latest
  2. Run the setup:

    bash
    dataproc-mcp --setup
  3. Configure authentication:

    bash
    # Edit the generated config file
    nano config/server.json
  4. Start the server:

    bash
    dataproc-mcp

🌐 Claude.ai Web App Compatibility

✅ PRODUCTION-READY: Full Claude.ai Integration with HTTPS Tunneling & OAuth

The Dataproc MCP Server now provides complete Claude.ai web app compatibility with a working solution that includes all 22 MCP tools!

🚀 Working Solution (Tested & Verified)

Terminal 1 - Start MCP Server:

bash
DATAPROC_CONFIG_PATH=config/github-oauth-server.json npm start -- --http --oauth --port 8080

Terminal 2 - Start Cloudflare Tunnel:

bash
cloudflared tunnel --url https://localhost:8443 --origin-server-name localhost --no-tls-verify

Result: Claude.ai can see and use all tools successfully! 🎉

Key Features:

  • ✅ Complete Tool Access - All 22 MCP tools available in Claude.ai
  • ✅ HTTPS Tunneling - Cloudflare tunnel for secure external access
  • ✅ OAuth Authentication - GitHub OAuth for secure authentication
  • ✅ Trusted Certificates - No browser warnings or connection issues
  • ✅ WebSocket Support - Full WebSocket compatibility with Claude.ai
  • ✅ Production Ready - Tested and verified working solution

Quick Setup:

  1. Setup GitHub OAuth (5 minutes)
  2. Generate SSL certificates: npm run ssl:generate
  3. Start services (2 terminals as shown above)
  4. Connect Claude.ai to your tunnel URL

📖 Complete Guide: See docs/claude-ai-integration.md for detailed setup instructions, troubleshooting, and advanced features.

📖 Certificate Setup: See docs/trusted-certificates.md for SSL certificate configuration.

✨ Features

🎯 Core Capabilities

  • 22 Production-Ready MCP Tools - Complete Dataproc management suite
  • 🧠 Knowledge Base Semantic Search - Natural language queries with optional Qdrant integration
  • 🚀 Response Optimization - 60-96% token reduction with Qdrant storage
  • 🔄 Generic Type Conversion System - Automatic, type-safe data transformations
  • 60-80% Parameter Reduction - Intelligent default injection
  • Multi-Environment Support - Dev/staging/production configurations
  • Service Account Impersonation - Enterprise authentication
  • Real-time Job Monitoring - Comprehensive status tracking

🚀 Response Optimization

  • 96.2% Token Reduction - list_clusters: 7,651 → 292 tokens
  • Automatic Qdrant Storage - Full data preserved and searchable
  • Resource URI Access - dataproc://responses/clusters/list/abc123
  • Graceful Fallback - Works without Qdrant, falls back to full responses
  • 9.95ms Processing - Lightning-fast optimization with <1MB memory usage

🔄 Generic Type Conversion System

  • 75% Code Reduction - Eliminates manual conversion logic across services
  • Type-Safe Transformations - Automatic field detection and mapping
  • Intelligent Compression - Field-level compression with configurable thresholds
  • 0.50ms Conversion Times - Lightning-fast processing with 100% compression ratios
  • Zero-Configuration - Works automatically with existing TypeScript types
  • Backward Compatible - Seamless integration with existing functionality

� Enterprise Security

  • Input Validation - Zod schemas for all 16 tools
  • Rate Limiting - Configurable abuse prevention
  • Credential Management - Secure handling and rotation
  • Audit Logging - Comprehensive security event tracking
  • Threat Detection - Injection attack prevention

📊 Quality Assurance

  • 90%+ Test Coverage - Comprehensive test suite
  • Performance Monitoring - Configurable thresholds
  • Multi-Environment Testing - Cross-platform validation
  • Automated Quality Gates - CI/CD integration
  • Security Scanning - Vulnerability management

🚀 Developer Experience

  • 5-Minute Setup - Quick start guide
  • Interactive Documentation - HTML docs with examples
  • Comprehensive Examples - Multi-environment configs
  • Troubleshooting Guides - Common issues and solutions
  • IDE Integration - TypeScript support

🛠️ Complete MCP Tools Suite (22 Tools)

🔄 Enhanced with Generic Type Conversion: All tools now benefit from automatic, type-safe data transformations with intelligent compression and field mapping.

🚀 Cluster Management (8 Tools)

ToolDescriptionSmart DefaultsKey Features
start_dataproc_clusterCreate and start new clusters✅ 80% fewer paramsProfile-based, auto-config
create_cluster_from_yamlCreate from YAML configuration✅ Project/region injectionTemplate-driven setup
create_cluster_from_profileCreate using predefined profiles✅ 85% fewer params8 built-in profiles
list_clustersList all clusters with filtering✅ No params neededSemantic queries, pagination
list_tracked_clustersList MCP-created clusters✅ Profile filteringCreation tracking
get_clusterGet detailed cluster information✅ 75% fewer paramsSemantic data extraction
delete_clusterDelete existing clusters✅ Project/region defaultsSafe deletion
get_zeppelin_urlGet Zeppelin notebook URL✅ Auto-discoveryWeb interface access

💼 Job Management (7 Tools)

ToolDescriptionSmart DefaultsKey Features
submit_hive_querySubmit Hive queries to clusters✅ 70% fewer paramsAsync support, timeouts
submit_dataproc_jobSubmit Spark/PySpark/Presto jobs✅ 75% fewer paramsMulti-engine support, Local file staging
cancel_dataproc_jobCancel running or pending jobs✅ JobID only neededEmergency cancellation, cost control
get_job_statusGet job execution status✅ JobID only neededReal-time monitoring
get_job_resultsGet job outputs and results✅ Auto-paginationResult formatting
get_query_statusGet Hive query status✅ Minimal paramsQuery tracking
get_query_resultsGet Hive query results✅ Smart paginationEnhanced async support

📋 Configuration & Profiles (3 Tools)

ToolDescriptionSmart DefaultsKey Features
list_profilesList available cluster profiles✅ Category filtering8 production profiles
get_profileGet detailed profile configuration✅ Profile ID onlyTemplate access
query_cluster_dataQuery stored cluster data✅ Natural languageSemantic search

📊 Analytics & Insights (4 Tools)

ToolDescriptionSmart DefaultsKey Features
check_active_jobsQuick status of all active jobs✅ No params neededMulti-project view
get_cluster_insightsComprehensive cluster analytics✅ Auto-discoveryMachine types, components
get_job_analyticsJob performance analytics✅ Success ratesError patterns, metrics
query_knowledgeQuery comprehensive knowledge base✅ Natural languageClusters, jobs, errors

🎯 Key Capabilities

  • 🧠 Semantic Search: Natural language queries with Qdrant integration
  • ⚡ Smart Defaults: 60-80% parameter reduction through intelligent injection
  • 📊 Response Optimization: 96% token reduction with full data preservation
  • 🔄 Async Support: Non-blocking job submission and monitoring
  • 🏷️ Profile System: 8 production-ready cluster templates
  • 📈 Analytics: Comprehensive insights and performance tracking

📋 Configuration

Project-Based Configuration

The server supports a project-based configuration format:

yaml
# profiles/@analytics-workloads.yaml
my-company-analytics-prod-1234:
  region: us-central1
  tags:
    - DataProc
    - analytics
    - production
  labels:
    service: analytics-service
    owner: data-team
    environment: production
  cluster_config:
    # ... cluster configuration

Authentication Methods

  1. Service Account Impersonation (Recommended)
  2. Direct Service Account Key
  3. Application Default Credentials
  4. Hybrid Authentication with fallbacks

📚 Documentation

🔧 MCP Client Integration

Claude Desktop

json
{
  "mcpServers": {
    "dataproc": {
      "command": "npx",
      "args": ["@dataproc/mcp-server"],
      "env": {
        "LOG_LEVEL": "info"
      }
    }
  }
}

Roo (VS Code)

json
{
  "mcpServers": {
    "dataproc-server": {
      "command": "npx",
      "args": ["@dataproc/mcp-server"],
      "disabled": false,
      "alwaysAllow": [
        "list_clusters",
        "get_cluster",
        "list_profiles"
      ]
    }
  }
}

🏗️ Architecture

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   MCP Client    │────│  Dataproc MCP    │────│  Google Cloud   │
│  (Claude/Roo)   │    │     Server       │    │    Dataproc     │
└─────────────────┘    └──────────────────┘    └─────────────────┘
                              │
                       ┌──────┴──────┐
                       │   Features  │
                       ├─────────────┤
                       │ • Security  │
                       │ • Profiles  │
                       │ • Validation│
                       │ • Monitoring│
                       │ • Generic    │
                       │   Converter  │
                       └─────────────┘

🔄 Generic Type Conversion System Architecture

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│  Source Types   │────│ Generic Converter │────│ Qdrant Payloads │
│ • ClusterData   │    │    System        │    │ • Compressed    │
│ • QueryResults  │    │                  │    │ • Type-Safe     │
│ • JobData       │    │ ┌──────────────┐ │    │ • Optimized     │
└─────────────────┘    │ │Field Analyzer│ │    └─────────────────┘
                       │ │Transformation│ │
                       │ │Engine        │ │
                       │ │Compression   │ │
                       │ │Service       │ │
                       │ └──────────────┘ │
                       └──────────────────┘

🚦 Performance

Response Time Achievements

  • Schema Validation: ~2ms (target: <5ms) ✅
  • Parameter Injection: ~1ms (target: <2ms) ✅
  • Generic Type Conversion: ~0.50ms (target: <2ms) ✅
  • Credential Validation: ~25ms (target: <50ms) ✅
  • MCP Tool Call: ~50ms (target: <100ms) ✅

Throughput Achievements

  • Schema Validation: ~2000 ops/sec ✅
  • Parameter Injection: ~5000 ops/sec ✅
  • Generic Type Conversion: ~2000 ops/sec ✅
  • Credential Validation: ~200 ops/sec ✅
  • MCP Tool Call: ~100 ops/sec ✅

Compression Achievements

  • Field-Level Compression: Up to 100% compression ratios ✅
  • Memory Optimization: 30-60% reduction in memory usage ✅
  • Type Safety: Zero runtime type errors with automatic validation ✅

🧪 Testing

bash
# Run all tests
npm test

# Run specific test suites
npm run test:unit
npm run test:integration
npm run test:performance

# Run with coverage
npm run test:coverage

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

bash
# Clone the repository
git clone https://github.com/dipseth/dataproc-mcp.git
cd dataproc-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Start development server
npm run dev

📄 License

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

🆘 Support

🏆 Acknowledgments


Made with ❤️ for the MCP and Google Cloud communities

Установка

TypingMind
Требования:

Node.js 18+

{
  "mcpServers": {
    "dipseth-dataproc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dipseth/dataproc-mcp-server"
      ]
    }
  }
}

Используйте MCP Dataproc MCP Server с разными ИИ-моделями

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения Dataproc MCP Server вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Эта интеграция MCP работает локально на вашем устройстве через коннектор MCP TypingMind.

Руководство по настройке локального коннектора

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Подтвердите установку пакета, если терминал запросит разрешение продолжить.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте Dataproc MCP Server как сервер

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP для Dataproc MCP Server.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "dipseth-dataproc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@dipseth/dataproc-mcp-server"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для Dataproc MCP Server, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для Dataproc MCP Server.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью Dataproc MCP Server?
Dataproc MCP Server
Конечно. Я всё прочитал.
Вот что я нашёл с помощью Dataproc MCP Server.

Часто задаваемые вопросы

Для чего используется сервер MCP Dataproc MCP Server?

Dataproc MCP Server — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP Dataproc MCP Server с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать Dataproc MCP Server с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать MCP Dataproc MCP Server с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив Dataproc MCP Server, вы сможете использовать его инструменты MCP с предпочитаемыми моделями, сохраняя удобную организацию работы с чатами в TypingMind.

Как подключить сервер MCP Dataproc MCP Server к TypingMind?

Dataproc MCP Server работает через локальный коннектор MCP TypingMind. Этот вариант лучше всего подходит, когда серверу MCP нужен доступ к локальным файлам, настольным приложениям, инструментам командной строки или закрытым ресурсам на вашем компьютере.

Какие инструменты предоставляет сервер MCP Dataproc MCP Server в TypingMind?

Dataproc MCP Server предоставляет возможности MCP, которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP Dataproc MCP Server?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если Dataproc MCP Server требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

Похожие серверы MCP

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇