Back to Home
glebmish icon

rewrite-claude-assisted

Verified Safe

by glebmish

Overview

A Model Context Protocol (MCP) server that provides AI agents (specifically Claude Code) with tools for discovering OpenRewrite refactoring recipes and retrieving their documentation through semantic search.

Installation

Run Command
./scripts/startup.sh

Environment Variables

  • DB_HOST
  • DB_PORT
  • DB_NAME
  • DB_USER
  • DB_PASSWORD
  • EMBEDDING_MODEL
  • EMBEDDING_DIMENSION
  • DB_IMAGE_NAME
  • DB_IMAGE_TAG

Security Notes

The server utilizes parameterized queries to prevent SQL injection and loads database credentials from environment variables, which are good security practices. It leverages a standard SentenceTransformer model for embeddings. The `startup.sh` script manages a local PostgreSQL Docker container in a controlled environment. While the broader workflow involves executing OpenRewrite recipes (which could theoretically perform arbitrary code changes), the MCP server itself is designed to provide search and documentation, and the `validate-recipe.sh` script uses trusted local init scripts to execute Gradle, mitigating direct malicious code injection through the recipe YAMLs. No 'eval' or obfuscation found.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-02

Tags

OpenRewriteCode RefactoringAI AssistantSemantic SearchPostgreSQL