semantic-edit-mcp
Provides AST-aware code editing operations for Rust files, including syntax validation, node targeting, and structural editing while maintaining syntax integrity.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@semantic-edit-mcppreview-edit add error handling to the fetch function in api.js"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
semantic-edit-mcp
A Model Context Protocol server for AST-aware code editing
Supported Languages and Important Language Notes
Rust
Must have
rustfmtavailable on thePATHCurrently assumes edition 2024 for formatting, eventually this will be determined from context
Python
Must have
ruffavailable on thePATH
JavaScript/TypeScript/JSON/JSX/TSX
Must have
biomeavailable on thePATH
TOML
No external dependencies, taplo formatting included
Plaintext / markdown / default editor
No external dependencies
Related MCP server: semamerge
Tools
edit Apply a validated edit to a file and see the resulting diff
retarget-edit Move the most recent edit to a corrected anchor without resending its content
undo-edit Revert the most recent edit, restoring the file's prior content
find-anchor Show every location an anchor matches in a file, with context
set-working-directory Set the working context path for a sessionEdits persist immediately when they validate (parse + formatter). The returned
diff is for review-after-the-fact: if the edit landed somewhere other than
intended, retarget-edit moves it and undo-edit (single-level) reverts it.
Installation
$ cargo install semantic-edit-mcpUsage with Claude Desktop or gemini-cli
Add this to your MCP configuration JSON file:
{
"mcpServers": {
"edit": {
"command": "/path/to/semantic-edit-mcp/semantic-edit-mcp",
"args": ["serve"]
}
}
}License
This server cannot be deployed
Maintenance
Related MCP Connectors
Edit images over MCP with object removal, background removal, and guided generative edits.
Related MCP Servers
- -
- AlicenseAqualityDmaintenanceMCP server that detects semantic (non-textual) merge conflicts between Git branches using AST-level analysis. Catches incompatible changes that Git merges cleanly — signature changes, removed exports, parameter changes, interface breaks, and cross-file dependency conflicts.432 npmMIT
- AlicenseAqualityCmaintenanceAST-targeted code editing MCP server with 28 surgical tools for structural edits across 11 languages. Built on tree-sitter, replaces brittle search/replace with byte-correct edits keyed by symbol names.28MIT
- AlicenseNot gradedqualityDmaintenanceSemantic concept graph MCP server for codebases — what your code means, not just what it does.2MIT