rewrite-claude-assisted
Verified Safeby 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
./scripts/startup.shEnvironment 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
claude-code-mcp
Acts as an MCP server to enable LLMs to run Claude Code CLI in one-shot mode, bypassing permissions for complex coding, file system, Git, and terminal operations.
consult-llm-mcp
An MCP server that allows AI agents like Claude Code to consult stronger, more capable AI models (e.g., GPT-5.2, Gemini 3.0 Pro) for complex code analysis, debugging, and architectural advice.
spring-rest-to-mcp
Transforms existing Spring Web REST APIs into Spring AI Model Context Protocol (MCP) server tools using OpenRewrite recipes.
ast-mcp-server
Provides an MCP (Model Context Protocol) server for code structure and semantic analysis using ASTs and ASGs, integrated with external AI clients like Claude Desktop.