
Gradle Tomcat MCP Server
Enables management of Gradle-based Tomcat applications with capabilities for starting, stopping, restarting processes and querying application logs.
README
Gradle Tomcat MCP Server
A Model Context Protocol (MCP) server for managing Gradle-based Tomcat applications with log querying capabilities.
Features
- Process Management: Start, stop, restart, and monitor Tomcat processes via Gradle
- Log Management: Capture, store, and query application logs with filtering
- Real-time Monitoring: Stream logs and process status updates
- MCP Integration: Full integration with Claude and other MCP clients
Installation
Global Installation (Recommended)
npm install -g mcp-gradle-tomcat
Local Installation
npm install mcp-gradle-tomcat
From Source
git clone https://github.com/your-username/mcp-gradle-tomcat.git
cd mcp-gradle-tomcat
npm install
Quick Start
1. Add to Claude Configuration
Add this to your Claude configuration file (~/.claude/config.json
):
{
"mcpServers": {
"gradle-tomcat": {
"command": "mcp-gradle-tomcat",
"env": {
"GRADLE_WORKING_DIR": "/path/to/your/gradle/project"
}
}
}
}
2. Use with Claude
Once configured, you can use these commands in Claude:
- "Start Tomcat" - Launches your Gradle application
- "Stop Tomcat" - Gracefully stops the running application
- "Get Tomcat status" - Shows process status and uptime
- "Get recent logs" - Retrieves application logs with filtering
- "Restart Tomcat" - Stops and starts the application
Manual Usage
Direct Execution
# Set your project directory
export GRADLE_WORKING_DIR="/path/to/your/gradle/project"
# Run the MCP server
mcp-gradle-tomcat
Testing Tools
# Test individual tools
npm test
Configuration
Configuration can be set via environment variables:
GRADLE_WORKING_DIR
: Working directory for Gradle commands (default: current directory)GRADLE_COMMAND
: Gradle command to run (default: appRun)TOMCAT_PORT
: Expected Tomcat port (default: 8080)MAX_LOG_BUFFER_SIZE
: Maximum log entries in memory (default: 1000)LOG_DIR
: Directory for log files (default: ./logs)
Available Tools
start_tomcat
Launch Tomcat via Gradle
gradle_command
(optional): Gradle command to runworking_directory
(optional): Working directory
stop_tomcat
Terminate Tomcat process
force
(optional): Force termination with SIGKILL
restart_tomcat
Stop and start Tomcat
force
(optional): Force termination during stopgradle_command
(optional): Gradle command for restart
get_tomcat_status
Check Tomcat process status
- No parameters
get_logs
Retrieve log entries
lines
(optional): Number of recent log lines (default: 100)level
(optional): Minimum log level (DEBUG, INFO, WARN, ERROR)since
(optional): ISO 8601 timestamp to filter fromsource
(optional): Filter by source (stdout, stderr)
clear_logs
Clear log buffer and files
confirm
(required): Must be true to confirm
Architecture
src/
├── server.js # Main MCP server
├── process-manager.js # Tomcat lifecycle management
├── log-manager.js # Log capture and querying
├── tools/ # MCP tool implementations
└── config.js # Configuration management
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.