Formats files with project-specific .editorconfig rules through an MCP server.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag ā we're steadily working through the catalog.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Editorconfig MCP.
A Model Context Protocol (MCP) compliant server that formats files using .editorconfig rules.
This project started from a specific workflow issue I kept running into. I found that while working with AI coding agents, they would often generate code with minor formatting errors, like trailing whitespace or inconsistent newlines. Our linters would then flag these issues, and the agent would spend valuable cycles fixing its own simple mistakes.
This EditorConfig MCP Server is the tool I built to solve that problem for myself. It acts as a proactive formatting gatekeeper, using your project's .editorconfig rules to ensure files are correct from the start. My hope is that it might be useful to others who've encountered a similar frustration in their AI-assisted development process.
Then start the server:
Then add to your project's scripts in package.json:
/v1/ prefixThe server will start on port 8432 by default.
PORT - Server port (default: 8432)
PORT=8080 editorconfig-mcp-serverTo add this server to Claude Code, run:
This server is designed to be used with AI coding assistants that support MCP. Configure your AI tool to connect to:
http://localhost:8432POST /v1/tools/format_fileFormat a single file using .editorconfig rules.
Request:
Response:
POST /v1/tools/format_filesFormat multiple files matching a glob pattern.
Request:
Response:
GET /openapi.json - OpenAPI 3.0 specificationGET /.well-known/mcp/servers.json - MCP server manifestGET /health - Health check endpointAll errors follow a consistent format:
The server implements rate limiting:
This project follows Semantic Versioning:
To release a new version:
This will:
To publish this package to npm:
npm loginnpm version (see above)npm publishFor automated publishing via GitHub:
NPM_TOKENTo register this server in the MCP registry:
MIT
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/neilberkman-editorconfig-mcp)<a href="https://allmcps.com/mcp/neilberkman-editorconfig-mcp"><img src="https://allmcps.com/api/badge/neilberkman-editorconfig-mcp?style=directory" alt="Editorconfig MCP on AllMCPs" /></a>