jooq-mcp

jooq-mcp

Provides AI models with access to jOOQ documentation, enabling querying of features, SQL examples, code generation, database support, and advanced topics.

Category
访问服务器

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:

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

    ./mvnw clean install
    
  3. Run the application:

    ./mvnw spring-boot:run
    

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

Docker Deployment

  1. Build the JAR file:

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

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

    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:

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

    ./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:

# 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:

./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.

推荐服务器

Baidu Map

Baidu Map

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

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

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

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

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

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

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

官方
精选
本地
TypeScript
VeyraX

VeyraX

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

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

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

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

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

官方
精选
Python
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 模型以安全和受控的方式获取实时的网络信息。

官方
精选