Adds Vale prose linting tools to GitHub Copilot in VS Code, allowing developers to check documents for style and grammar issues directly within their development environment
Provides Vale prose linting functionality through the Gemini command-line tool, enabling style and grammar checking of text files
Vale MCP Server
A Model Context Protocol (MCP) server that integrates Vale prose linting into AI coding assistants like Claude Code and Gemini command-line tool.
Overview
This MCP server provides AI assistants with the ability to check files for style and grammar issues using Vale's powerful linting engine. It automatically discovers Vale configuration files and provides formatted, actionable feedback about writing quality.
Features
ā File linting: Check any text file for style issues with Vale.
š Smart config discovery: Automatically finds
.vale.ini
files using Vale's native upward search.šÆ Configuration priority: Supports
VALE_CONFIG_PATH
environment variable for explicit config.š Rich formatting: Returns markdown-formatted results with emojis and severity grouping.
š”ļø Graceful degradation: Provides helpful installation guidance when Vale isn't installed.
š Debug mode: Optional debug logging for troubleshooting.
System requirements
Node.js: Version 22 or higher
Vale: Version 3.0 or higher
Build from source
Install globally
This creates a global vale-mcp-server
command that you can use from anywhere.
To uninstall:
Using with AI assistants
The Vale MCP server can be integrated with AI coding assistants that support the MCP standard.
Claude Code
Add the Vale MCP server to Claude Code using stdio transport:
Verify installation:
In Claude Code:
See Claude Code MCP documentation for more details.
Gemini CLI
Add the Vale MCP server to Gemini command-line tool:
Verify installation:
Refer to the Gemini command-line tool MCP documentation for more details.
GitHub Copilot in VS Code
Add the Vale MCP server using VS Code's Command Palette for a quick, no-config setup:
Open the command palette: press
Ctrl+Shift+P
(Windows/Linux) orCmd+Shift+P
(Mac).Run Command: Type
MCP: Add Server
and select it.Provide Server Information:
Name:
vale
(or any name you prefer)Type: Select
stdio
Command:
vale-mcp-server
Arguments: Leave empty or add
--debug
for debug mode
Choose Scope:
User configuration: Available globally across all workspaces
Workspace: Available only in the current workspace
Verify in VS Code:
Open GitHub Copilot Chat
Type
/mcp
to see available MCP toolsThe Vale tools should appear in the list
Usage examples
"Check docs/guide.md using Vale"
"Lint this markdown file: @README.md"
"What style issues does Vale find in the documentation?"
Available tools
The server provides three MCP tools:
vale_status
Check if you have installed Vale and can access it.
Returns:
Installation status (installed/not installed)
Vale version (if installed)
Platform-specific installation instructions (if not installed)
Example usage in AI:
"Is Vale installed on this system?"
vale_sync
Download Vale styles and packages by running vale sync
. Use this when you encounter errors about missing styles directories.
Parameters:
config_path
(optional): Path to.vale.ini
file. If not provided, uses the server's configured path or searches in the current directory.
Returns:
Success/failure status
Output from the sync operation
Helpful error messages if sync fails
When to use:
When you see E100 errors:
"The path '/path/to/styles' does not exist"
After creating or updating a
.vale.ini
fileWhen adding new packages to your Vale configuration
Example usage in AI:
"Run vale_sync to download the required styles" "The styles directory is missing, can you sync Vale?"
check_file
Lint a file at a specific path against Vale style rules.
Parameters:
path
(required): Absolute or relative path to the file
Returns:
Formatted markdown with issues grouped by severity
Detailed issue information (line, column, rule, message, suggestion)
Summary statistics (errors, warnings, suggestions)
Example usage in AI:
"Check the README.md file for style issues"
Command-line options
Development
Project structure
Building for development
Linting
AI usage disclosure
I've created this project using Claude Code with the Claude 4.5 model.
License
This project is licensed under the MIT License. Refer to the LICENSE file for details.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Integrates Vale prose linting into AI coding assistants, enabling users to check text files for style and grammar issues using Vale's powerful linting engine. Provides automated style feedback with smart configuration discovery and rich formatted results.