Logo di Vale MCP Server

Vale MCP Server

Community
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.

AutoreChrisChinchilla
RepositoryVale-MCP
LinguaTypeScript
Fork
7
Stelle
26
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Vale MCP Server mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    26 stelle e 7 fork nel repository collegato.

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.

Installazione

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

Usa MCP Vale MCP Server con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Vale MCP Server, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Vale MCP Server come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Vale MCP Server.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "vale-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vale-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Vale MCP Server, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Vale MCP Server.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Vale MCP Server per aiutarmi con questa attività?
Vale MCP Server
Certo. Ho letto.
Ecco cosa ho trovato con Vale MCP Server.

Domande frequenti

A cosa serve il server MCP Vale MCP Server?

Vale MCP Server è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Vale MCP Server MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Vale MCP Server con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Vale MCP Server con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Vale MCP Server, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Vale MCP Server MCP a TypingMind?

Vale MCP Server funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Vale MCP Server MCP in TypingMind?

Vale MCP Server mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Vale MCP Server MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Vale MCP Server richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇