Content
# Drools MCP
This is a POC/test project made to see how a MCP made for Drools could help in generating code with LLMs.
The Quarkus Weather MCP example was used as a base. Most of the code is generated with AI so if there are bugs, I blame it.
### Requirements
You need to have the following:
* Java
* JBang
* Claude Desktop or some other method for connecting to the MCP
Setup for Claude would be:
{
"mcpServers": {
"drools-mcp": {
"command": "jbang",
"args": ["--quiet",
"org.drools:drools-mcp:1.0.0-SNAPSHOT:runner"]
}
}
}
### Details
[DRLTool.java](src/main/java/org/drools/DRLTool.java) lists the available tools.
These tools include two ways to run DRL code and one for structural validation.
Structured validation covers cases like rule, pattern and field validation.
The rules can check that:
* The names of the elements are in correct format and do not include any unwanted wording.
* A fact type has an existing field and you want to prevent that from being used.
* Block the use of salience. Some LLM models seem to force that in.
* Stop excessive use of nested 'froms'
Connection Info
You Might Also Like
rea
Reverse engineering for coding agents: one CLI and MCP server to inspect any...
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
cc-switch
All-in-One Assistant for Claude Code, Codex & Gemini CLI across platforms.
Agent-Reach
Give your AI agent eyes to see the entire internet. Read & search Twitter,...
servers
Model Context Protocol Servers