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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grammar-coachcheck this sentence for grammar and spelling: Their going to the store yesterday."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π 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: Byakugan: Private, open-source AI-text checker
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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Toxicity, sentiment, NER, PII detection, and language identification tools
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.
16 AI-native tools with dual SSE + streamable-http transport. Free tier available.
Related MCP Servers
- FlicenseAqualityBmaintenanceL1-aware grammar, style, translation & tone tools with 70 local rules. Zero API keys needed.4-
- AlicenseAqualityBmaintenanceA private, open-source AI-text checker. Get a read on whether text looks AI-written, the exact AI-tell spans to fix, a reuse check, and a grammar pass.4MIT
- AlicenseNot gradedqualityDmaintenanceProvides deterministic, verifiable text/code/measurement utilities for AI agents, enabling tasks like unit conversion, citation formatting, diffing, proofreading, readability scoring, and syntax checking with re-executable proof.MIT
- 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