Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Provides automated grammar checking by intercepting user input and returning correction instructions for MCP-compatible clients like Claude Desktop and Claude Code.

README.md

Grammar Police MCP Server 👮‍♂️✍️

An MCP (Model Context Protocol) server that provides automated grammar checking capabilities to MCP-compatible clients like Claude Desktop and Claude Code.

📖 How It Works

This server exposes a check_grammar tool. The workflow is designed as a "middleware" style interception:

  1. You configure Claude to send your raw input to this tool first.
  2. The tool returns your text along with correction instructions.
  3. Claude (the LLM) performs the actual correction based on the tool's output before answering your technical question.

This design keeps the server lightweight while leveraging the LLM's full language understanding capabilities.

✅ Prerequisites

📦 Installation

Option 1: Install from npm (Recommended)

No manual download required. You can run it directly via npx.

npm install -g grammar-police-mcp

Option 2: Clone from GitHub (For Development)

# Clone the repository
git clone [https://github.com/acforu/grammar-police-mcp.git](https://github.com/acforu/grammar-police-mcp.git)
cd grammar-police-mcp

# Install dependencies
npm install

# Build the project
npm run build

⚙️ Configuration

⚠️ Important: Claude Desktop (GUI) and Claude Code (CLI) use different config files. Please follow the section matching your tool.

🖥️ For Claude Desktop (GUI)

Config File Location:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Add grammar-police to the mcpServers object.

If using npm (Option 1):

macOS:

{
  "mcpServers": {
    "grammar-police": {
      "command": "npx",
      "args": ["-y", "grammar-police-mcp"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "grammar-police": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "grammar-police-mcp"]
    }
  }
}

(Note: On Windows, cmd /c is required to invoke npx correctly.)

If using Source Code (Option 2):

macOS:

{
  "mcpServers": {
    "grammar-police": {
      "command": "node",
      "args": ["/absolute/path/to/grammar-police-mcp/build/index.js"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "grammar-police": {
      "command": "node",
      "args": ["C:\\absolute\\path\\to\\grammar-police-mcp\\build\\index.js"]
    }
  }
}

(Note: Replace paths with your actual project location. Ensure your build output folder is build.)

---

⌨️ For Claude Code (CLI)

Config File Location:

  • Windows: %USERPROFILE%\.claude.json
  • macOS/Linux: ~/.claude.json
  • Or configure per-project in your project's .claude.json

Add the server configuration using the same JSON format as the Desktop version above.

🚀 Usage

Since this tool is passive (it doesn't fix things unless you ask it to), you must instruct Claude to use it on every message.

Method A: Claude Desktop (Project Instructions)

  1. Open your Project in Claude.
  2. Click Project Settings (or Edit).
  3. Add the following to Project Instructions (System Prompt):

GLOBAL INSTRUCTION: You have access to a tool named grammar-police. For every user message, you MUST first run the check_grammar tool on the raw input to check for errors. Display the corrections if any, then proceed to answer the user's request.

Method B: Claude Code (CLAUDE.md)

Create or edit the CLAUDE.md file in your project root:

## Tool Usage
You have access to a tool named `grammar-police`. Call the `check_grammar` tool with the user's raw input to check for English grammar errors before generating your response.

Verify It Works

Restart Claude. Type a message with intentional errors:

"i write code good."

Claude should call the tool and respond with a correction before answering.

🛠️ Development

  • npm run build: Compile TypeScript to JavaScript (outputs to /build)
  • npm start: Run the compiled server
  • npm run dev: Watch mode for development

📄 License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.