ch.martinelli/jooq-mcp

平台与服务

by martinellich

提供jOOQ文档访问能力的MCP Server,便于检索、查阅相关资料。

什么是 ch.martinelli/jooq-mcp

提供jOOQ文档访问能力的MCP Server,便于检索、查阅相关资料。

README

jOOQ MCP Server

A Model Context Protocol (MCP) server that provides AI models with access to jOOQ documentation. This Spring Boot application uses Spring AI to expose jOOQ documentation as MCP tools, allowing AI systems to query and retrieve information about jOOQ features, SQL examples, and best practices.

Features

The MCP server provides the following tools:

  • searchDocumentation: Search jOOQ documentation for specific topics
  • getSqlExamples: Get SQL query building examples for specific operations
  • getCodeGenerationGuide: Retrieve jOOQ code generation documentation
  • getDatabaseSupport: Get database-specific support information
  • getQueryDslReference: Get Query DSL reference for specific statement types
  • getAdvancedFeatures: Access documentation for advanced jOOQ features

Getting Started

Prerequisites

  • Java 21 or higher
  • Maven 3.6+

Running the Application

  1. Clone the repository:

    bash
    git clone <repository-url>
    cd jooq-mcp
    
  2. Build the project:

    bash
    ./mvnw clean install
    
  3. Run the application:

    bash
    ./mvnw spring-boot:run
    

The MCP server will start and be available for connections from MCP clients.

Docker Deployment

  1. Build the JAR file:

    bash
    ./mvnw clean package
    
  2. Build the Docker image:

    bash
    docker build -t jooq-mcp .
    
  3. Run the Docker container:

    bash
    docker run -p 8080:8080 jooq-mcp
    

Fly.io Deployment

This application is configured for deployment on Fly.io:

  1. Install Fly CLI and authenticate:

    bash
    brew install flyctl  # or your preferred installation method
    fly auth login
    
  2. Deploy the application:

    bash
    ./mvnw clean package
    fly deploy
    

The application includes health checks at /actuator/health and is configured with auto-scaling.

Using with MCP Clients

This server can be used with any MCP-compatible AI client. The server exposes tools that allow AI models to:

  • Search jOOQ documentation by keyword
  • Retrieve specific SQL examples and code snippets
  • Access database-specific configuration information
  • Get guidance on code generation setup
  • Find information about advanced jOOQ features

Configuration

The application can be configured via application.properties:

properties
# MCP Server Configuration
spring.ai.mcp.server.name=jooq-documentation-mcp
spring.ai.mcp.server.version=1.0.0
spring.ai.mcp.server.type=SYNC
spring.ai.mcp.server.capabilities.tool=true

# Cache Configuration
spring.cache.type=caffeine
spring.cache.caffeine.spec=maximumSize=100,expireAfterWrite=1h

# jOOQ Documentation Crawler Configuration
jooq.documentation.crawler.max-depth=4
jooq.documentation.crawler.max-urls-per-section=100
jooq.documentation.crawler.timeout-ms=10000
jooq.documentation.crawler.cache-duration-hours=24

# Server Configuration - SSE Buffer Settings
server.tomcat.max-http-response-header-size=64KB
server.tomcat.max-swallow-size=10MB

Example Usage

When connected to an MCP client, you can ask questions like:

  • "How do I create a SELECT statement in jOOQ?"
  • "Show me examples of jOOQ INSERT operations"
  • "What databases does jOOQ support?"
  • "How do I configure jOOQ code generation?"
  • "How do I use transactions in jOOQ?"

The server will fetch the relevant documentation and provide detailed answers with code examples.

Architecture

The application consists of:

  • JooqDocumentationService: Main service class with @Tool annotated methods for MCP integration
  • LocalJooqDocumentationService: Provides local documentation indexing and full-text search with TF-IDF scoring
  • InvertedIndex: Implements advanced full-text search capabilities with relevance scoring
  • JooqDocumentationCrawler: Crawls and fetches jOOQ documentation for local storage
  • JooqDocumentationFetcher: Handles parsing and extraction of documentation content
  • McpConfiguration: Spring configuration for MCP tool registration
  • Caching: Caffeine-based caching to improve performance

Key Features

  • Local Documentation Storage: Documentation is stored locally in src/main/resources/docs/ for faster access
  • Full-Text Search: Advanced search using TF-IDF scoring for better relevance
  • Efficient Indexing: In-memory inverted index for fast document retrieval
  • Code Example Extraction: Automatic extraction and categorization of code examples

Testing

Run the test suite:

bash
./mvnw test

Development

The application uses:

  • Spring Boot 3.5.4
  • Spring AI 1.0.0 with MCP Server support
  • JSoup for HTML parsing
  • Caffeine for caching

To add new tools, create methods annotated with @Tool in the JooqDocumentationService class.

常见问题

ch.martinelli/jooq-mcp 是什么?

提供jOOQ文档访问能力的MCP Server,便于检索、查阅相关资料。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描114.1k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描114.1k

MCP服务构建器

by alirezarezvani

Universal
热门

从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。

帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。

平台与服务
未扫描10.2k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
83.4k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.4k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
35.4k

评论