jOOQ logo

jOOQ

Organization
martinellich

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…

Publishermartinellich
Repositoryjooq-mcp
LanguageHTML
Forks
3
Stars
4
Available tools
0
Transport typestreamable-http
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    jOOQ exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    4 stars and 3 forks from the linked repository.

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.

Installation

TypingMind
{
  "mcpServers": {
    "jooq": {
      "url": "https://jooq-mcp.martinelli.ch/sse",
      "env": null
    }
  }
}

Use jOOQ MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once jOOQ is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP connects through a hosted MCP server URL in TypingMind.

Add an MCP server URL

Use this when jOOQ is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter https://jooq-mcp.martinelli.ch/sse in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste https://jooq-mcp.martinelli.ch/sse into the Server URL field.
  2. Enter a connection name for jOOQ.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the jOOQ connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the jOOQ tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the jOOQ tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use jOOQ to help me with this task?
jOOQ
Sure. I read it.
Here is what I found using jOOQ.

Frequently asked questions

What is the jOOQ MCP server used for?

jOOQ is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use jOOQ MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use jOOQ with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use jOOQ MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With jOOQ connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect jOOQ MCP to TypingMind?

jOOQ can be connected in TypingMind by adding its hosted MCP server URL. This is useful when you want a remote MCP connection that is available from your TypingMind workspace.

What tools does jOOQ MCP provide in TypingMind?

jOOQ exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use jOOQ MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If jOOQ requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇