Logotipo de Vale MCP Server

Vale MCP Server

Comunidad
ChrisChinchilla

A Model Context Protocol (MCP) server that integrates Vale prose linting into AI coding assistants like Claude Desktop, Cursor, and other MCP-compatible tools.

EditorChrisChinchilla
RepositorioVale-MCP
IdiomaTypeScript
Forks
7
Estrellas
26
Herramientas disponibles
0
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Vale MCP Server ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    26 estrellas y 7 forks en el repositorio enlazado.

Vale MCP Server

A Model Context Protocol (MCP) server that integrates Vale prose linting into AI coding assistants like Claude Desktop, Cursor, and other MCP-compatible tools.

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.

Quick install

Features

  • ✅ File linting: Check any text file for style issues with Vale
  • 🔍 Smart configuration discovery: Automatically finds .vale.ini files using Vale's native upward search
  • 🎯 Configuration priority: Supports VALE_CONFIG_PATH environment variable for explicit configuration
  • 📊 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
  • 📦 Style sync: Download Vale style packages with vale_sync tool

System requirements

  • Node.js: Version 22 or higher
  • Vale: Version 3.0 or higher

Installation

Using npx (no install required)

You can run Vale MCP directly using npx without installing it globally:

bash
npx vale-mcp@latest

This is the recommended approach for most users and is what the quick install badges above use.

Global install via npm

Install the vale-mcp package globally to create a system-wide vale-cli command:

bash
npm i @iflow-mcp/chrischinchilla-vale-mcp

To uninstall:

bash
npm uninstall -g vale-mcp

Build from source

bash
# Clone or navigate to the project directory
cd Vale-MCP

# Install dependencies
npm install

# Build the TypeScript project
npm run build

# Install globally (creates a system-wide vale-cli command)
npm run install:global

This creates a global vale-cli command that you can use from anywhere, making it easy to configure in AI assistants.

To uninstall:

bash
npm run uninstall:global

Note: If you're actively developing and making changes, you can skip global installation and use the absolute path to build/index.js instead (see integration examples below).

Using with AI assistants

AI coding assistants that support the MCP standard can integrate the Vale MCP server.

Claude Desktop

Add the Vale MCP server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "vale": {
      "command": "npx",
      "args": ["vale-mcp@latest"]
    }
  }
}

Using global install:

json
{
  "mcpServers": {
    "vale": {
      "command": "vale-cli",
      "args": []
    }
  }
}

For debug mode:

json
{
  "mcpServers": {
    "vale": {
      "command": "npx",
      "args": ["vale-mcp@latest", "--debug"]
    }
  }
}

Restart Claude Desktop after updating the configuration.

VS Code (GitHub Copilot)

You can also add the Vale MCP server to VS Code manually:

Option A: Command Palette (easiest)

  1. Open the Command Palette: Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
  2. Run: Type MCP: Add Server and select it
  3. Provide server information:
    • Name: vale (or any name you prefer)
    • Type: Select stdio
    • Command: npx (recommended, no install needed), vale-cli (if installed globally), or node
    • Arguments:
      • If using npx: Add vale-mcp@latest
      • If using vale-cli: Leave empty or add --debug
      • If using node: Add the path like /Users/fabri/repos/FrankenMCP/Vale-MCP/build/index.js
  4. Choose scope: User configuration (global) or Workspace (project-specific)

Option B: Manual configuration

Add to your VS Code settings file:

Using npx (no install needed):

json
{
  "github.copilot.chat.mcp.servers": {
    "vale": {
      "command": "npx",
      "args": ["vale-mcp@latest"]
    }
  }
}

Using global install:

json
{
  "github.copilot.chat.mcp.servers": {
    "vale": {
      "command": "vale-cli",
      "args": []
    }
  }
}

Using absolute path (no global install needed):

json
{
  "github.copilot.chat.mcp.servers": {
    "vale": {
      "command": "node",
      "args": ["/absolute/path/to/Vale-MCP/build/index.js"]
    }
  }
}

With debug mode:

json
{
  "github.copilot.chat.mcp.servers": {
    "vale": {
      "command": "npx",
      "args": ["vale-mcp@latest", "--debug"]
    }
  }
}

Verify in VS Code:

  • Open GitHub Copilot Chat
  • Type /mcp to see available MCP tools
  • The Vale tools should appear in the list

Cursor

You can also add the Vale MCP server manually (follow Cursor's MCP documentation):

Using npx (no install needed):

json
{
  "mcpServers": {
    "vale": {
      "command": "npx",
      "args": ["vale-mcp@latest"]
    }
  }
}

Using global install:

json
{
  "mcpServers": {
    "vale": {
      "command": "vale-cli"
    }
  }
}

Using absolute path:

json
{
  "mcpServers": {
    "vale": {
      "command": "node",
      "args": ["/absolute/path/to/Vale-MCP/build/index.js"]
    }
  }
}

Using a specific Vale configuration

You can specify a Vale configuration file using the VALE_CONFIG_PATH environment variable:

json
{
  "mcpServers": {
    "vale": {
      "command": "npx",
      "args": ["vale-mcp@latest"],
      "env": {
        "VALE_CONFIG_PATH": "/path/to/your/.vale.ini"
      }
    }
  }
}

Usage examples

Once configured, you can ask your AI assistant to:

  • "Check docs/guide.md using Vale"
  • "Lint this markdown file for style issues"
  • "What style issues does Vale find in README.md?"
  • "Run vale_sync to download the style packages"
  • "Is Vale installed on this system?"

Available tools

The server provides four 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 file
  • When adding new packages to your Vale configuration

Example usage in AI:

"Run vale_sync to download the required styles"

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)
  • Structured metadata for programmatic access

Example usage in AI:

"Check the README.md file for style issues"

check_text

Lint AI-generated text against Vale style rules before it's written to a file or artifact.

Parameters:

  • text (required): The text content to check with Vale
  • text_file_ext (optional): The file extension to apply to the text. Used as the value to Vale's --ext argument. If not specified, the --ext argument is not used. The format for this value is an optional leading dot followed by letters and digits, such as: "md", ".md", "txt", ".txt", or "docx"
  • config_path (optional): The path to the config file to use. If not specified, the server's configured path is used.

Returns:

  • A JSON object containing Vale's evaluation results.

Example usage in AI:

"Check this text for style issues"

Command-line options

bash
vale-cli [options]

Options:
  --debug, --verbose, -v    Enable debug logging
  --help, -h                Show help message
  --version                 Show version number

Configuration

The server searches for Vale configuration in the following order:

  1. Per-file: Configuration discovered from file's directory (for check_file tool)
  2. Server-wide: VALE_CONFIG_PATH environment variable
  3. Working directory: .vale.ini in process.cwd()
  4. Vale defaults: Global configuration or built-in rules

Example .vale.ini

ini
StylesPath = styles
Packages = write-good, proselint

[*]
BasedOnStyles = write-good, proselint

For more information about Vale configuration, see the Vale documentation.

Development

Project structure

Vale-MCP/
├── src/
│   ├── index.ts         # Main MCP server
│   ├── vale-runner.ts   # Vale execution wrapper
│   ├── config.ts        # Configuration management
│   └── types.ts         # TypeScript type definitions
├── build/               # Compiled JavaScript (generated)
├── package.json         # Node.js package configuration
├── tsconfig.json        # TypeScript compiler configuration
└── readme.md           # This file

Building for development

bash
# Install dependencies
npm install

# Build TypeScript
npm run build

# Watch for changes
npm run watch

# Run the server directly
npm start

Linting

bash
# TypeScript compilation check
npx tsc --noEmit

# Strict unused code check
npx tsc --noUnusedLocals --noUnusedParameters --noEmit

Troubleshooting

Vale not found

If you see errors about missing Vale installation:

macOS:

bash
brew install vale

Linux:

bash
sudo snap install vale

Windows:

bash
choco install vale
# or
scoop install vale

Missing styles directory (E100 errors)

If you see errors like "The path '/path/to/styles' does not exist":

  1. Make sure you have a .vale.ini file in your project
  2. Run the vale_sync tool through your AI assistant
  3. Or manually run: vale sync

Debug mode

Enable debug mode to see detailed logging:

json
{
  "mcpServers": {
    "vale": {
      "command": "vale-cli",
      "args": ["--debug"]
    }
  }
}

Check the MCP server logs in your AI assistant for detailed information.

Credits

Created by @chrischinchilla and @theletterf

License

MIT License. Refer to the LICENSE file for details.

Instalación

TypingMind
{
  "mcpServers": {
    "vale-mcp": {
      "command": "npx",
      "args": [
        "vale-mcp@latest"
      ]
    }
  }
}

Usa el MCP de Vale MCP Server con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Vale MCP Server, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Vale MCP Server como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Vale MCP Server.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "vale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vale-mcp"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Vale MCP Server y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Vale MCP Server.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Vale MCP Server para ayudarme con esta tarea?
Vale MCP Server
Claro. Lo he leído.
Esto he encontrado usando Vale MCP Server.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Vale MCP Server?

Vale MCP Server es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Vale MCP Server con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Vale MCP Server con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Vale MCP Server con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Vale MCP Server conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Vale MCP Server a TypingMind?

Vale MCP Server funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Vale MCP Server en TypingMind?

Vale MCP Server ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Vale MCP Server?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Vale MCP Server requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇