MCP Lucene Server
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"lucene": {
"env": {
"MCP_FORCE_TEXT": "1",
"LUCENE_BASE_URL": "http://localhost:8080/mcp/v1"
},
"args": [
".../MCP-Lucene-Server/mcp-shim/server.js"
],
"command": "/opt/homebrew/bin/node"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
The MCP Lucene Server is a Java-based implementation of the Model Context Protocol (MCP) designed to provide efficient search and retrieval capabilities using Apache Lucene. This server allows you to manage and query documents, leveraging Lucene's powerful indexing and search features. It is built using Spring Boot for easy setup and deployment.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in data / search
Query and manage PostgreSQL databases directly from AI assistants
Web and local search using Brave Search API
Production ready MCP server with real-time search, extract, map & crawl.
mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local
MCP Security Weekly
Get CVE alerts and security updates for MCP Lucene Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The MCP Lucene Server is a Java-based implementation of the Model Context Protocol (MCP) designed to provide efficient search and retrieval capabilities using Apache Lucene. This server allows you to manage and query documents, leveraging Lucene's powerful indexing and search features. It is built using Spring Boot for easy setup and deployment.
MCP Compliance: Implements the core Model Context Protocol.
Lucene-Powered: Utilizes Apache Lucene for full-text search and indexing.
RESTful API: Provides a RESTful API for interacting with the server.
Document Management:
Upsert: Add or update documents in the Lucene index.
Delete: Delete documents from the Lucene index.
List: Retrieve a list of documents from the index.
Querying:
Supports complex queries using the Lucene query syntax.
Filtering: Filter queries based on document metadata.
Status: Check the server status.
Spring Boot: Built with Spring Boot for easy setup and deployment.
Dockerization: Includes instructions for containerizing the application using Docker.
Java: Java 11 or higher.
Maven: Maven 3.6.0 or higher.
Docker: Install Docker if you plan to use the Docker image.
Clone the repository:
git clone [https://github.com/your-username/mcp-lucene-server.git](https://github.com/your-username/mcp-lucene-server.git)
cd mcp-lucene-server
(Replace your-username with your GitHub username)
Build the project using Maven:
mvn clean install
Run the Spring Boot application:
java -jar target/mcp-lucene-server-0.0.1-SNAPSHOT.jar
(The exact name of the .jar file might vary slightly depending on your project version.)
The server will start on port 8080 by default.
Ensure you have Docker installed: Follow the instructions on the official Docker website: https://docs.docker.com/get-docker/
Build the Docker image: Navigate to the root directory of your project in your terminal and run:
docker build -t mcp-lucene-server .
Run the Docker container:
docker run -p 8080:8080 mcp-lucene-server
This will map port 8080 on your host machine to port 8080 inside the container.
This project includes an optional MCP shim (mcp-shim/) that exposes the server's REST endpoints as MCP tools over STDIO so you can use them directly from Claude Desktop.
mvn spring-boot:run
The API will be available at http://localhost:8080/mcp/v1.
cd mcp-shim
npm install
# JSON + text output (default)
LUCENE_BASE_URL=http://localhost:8080/mcp/v1 npm start
# If your client cannot render JSON tool outputs, force text-only
MCP_FORCE_TEXT=1 LUCENE_BASE_URL=http://localhost:8080/mcp/v1 npm start
Update `~/.cl