grammar-coach
Routes grammar, spelling, and style checks through LanguageTool as its underlying analysis engine, powering the check_grammar tool and, by extension, the rewrite suggestions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π grammar-coach β an MCP Server
A Model Context Protocol (MCP) server, built from scratch with the official Python SDK, that exposes grammar and readability analysis as callable tools to any MCP host (Claude Desktop, Cursor, etc.).
Built by: Mohammed Abdul Najeeb
π‘ This is a hand-built MCP server demonstrating correct tool design β the core of the Model Context Protocol. It pairs with my VoiceCoach Lite app, which uses the same analysis engine in a web UI.
What is MCP (in one line)?
MCP is a standard protocol β "USB-C for AI" β that lets any AI host call tools and read data from any server. This repo is the server side: it publishes tools, and the AI host decides when to call them. The host decides; the server runs the code.
Related MCP server: content-qa-mcp
The tools this server exposes
Tool | Purpose | Input | Output |
| Detect grammar/spelling/style errors |
|
|
| Measure how easy text is to read |
|
|
| Produce a cleaned-up rewrite in a tone |
|
|
Each tool follows deliberate design rules (see below).
Tool-design principles applied
This server is a worked example of good MCP tool design:
Verb-noun names β
check_grammar, notprocessortool1Descriptions state purpose + inputs + outputs + WHEN to use β so the host routes to the right tool
Single-purpose tools β grammar, readability, and rewrite are different jobs, kept separate (not a
modemega-tool)Typed parameters β
text: str,tone: str = "professional"auto-generate the JSON input schemaStructured output β every tool returns a predictable dict, never free-form prose
How it's built
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("grammar-coach")
@mcp.tool()
def check_grammar(text: str) -> dict:
"""Check English text for grammar, spelling, and style errors. ..."""
return run_grammar_check(text)The @mcp.tool() decorator turns a documented, type-hinted Python function into
a fully-schema'd MCP tool β name from the function, schema from the type hints,
description from the docstring.
Run / test locally
pip install -r requirements.txt
python server.py # starts the server over stdioRegister it with Claude Desktop by adding the block in
claude_desktop_config.example.json to your Claude config, then ask Claude:
"Check the grammar of this sentence: ..." β it will call check_grammar.
Architecture
AI Host (Claude Desktop) ββMCP/stdioβββΊ server.py βββΊ grammar_engine.py βββΊ LanguageTool
"check my grammar" (3 tools) (analysis)Skills demonstrated
MCP server design Β· Tool schema definition Β· Structured output Β· Single-responsibility tool granularity Β· Python SDK (FastMCP)
License
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Toxicity, sentiment, NER, PII detection, and language identification tools
Sentiment, language detection, readability, keywords, summaries and profanity filtering
API Tool Calls: Home cost planners, proofreading, QR and barcodes, page to Markdown, SEO checks and recalls. Free agent tools: 20 calls/day per IP, no key.
Sentiment, toxicity, entity extraction, PII, translation, summary, QA, fraud scoring, safety audit.
Related MCP Servers
- AlicenseAqualityCmaintenanceL1-aware grammar, style, translation & tone tools with 70 local rules. Zero API keys needed.4MIT
- AlicenseAqualityCmaintenanceEnables editorial content QA over the Model Context Protocol with four local tools that analyze readability, AI-sounding language, SEO on-page factors, and produce full reports where every finding includes an actionable fix.41MIT
- AlicenseNot gradedqualityCmaintenanceProvides writing guidance and mechanical lint checks to help AI clients draft or rewrite content in a specific natural voice.MIT
- AlicenseAqualityCmaintenanceEnables deterministic, LLM-free checking of text against a prose editorial standard, returning violations with rule IDs, locations, severity, confidence, and suggested fixes, while also supporting safe fixes and writing measurements.520 npmMIT