About
Overview
The Prettier MCP Server enables AI agents to format code using Prettier. It supports JavaScript, TypeScript, CSS, HTML, JSON, Markdown, and many other languages. Provides tools for formatting files, checking formatting status, and resolving Prettier configuration.
Capabilities
Tools & Capabilities
⚡format
Format code using Prettier
⚡check
Check if code is already formatted
⚡get_config
Get the resolved Prettier configuration
Setup
Installation
bash
Install
npx -y mcp-server-prettierExamples
Example Usage
javascript
Usage
{
"mcpServers": {
"prettier": {
"command": "npx",
"args": ["-y", "mcp-server-prettier"]
}
}
}Quick Info
Authorcommunity
LanguageTypeScript
StatusStable
Stars★ 60
Last UpdatedFeb 12, 2026