A Model Context Protocol server from
API Commons that exposes the OpenLint
linter engine to any AI client — so an agent can lint your API artifacts and work
with rulesets conversationally. It runs the @openlint/* engine (the same one behind the
openlint CLI) over stdio.
| Tool | What it does |
|---|---|
lint_artifact |
Lint an artifact (content, optional format, optional ruleset) → findings (code, message, severity, path) + counts |
list_rulesets |
The built-in rulesets (spectral:oas, :asyncapi, :arazzo) and their rules |
list_formats |
The artifact formats the OpenLint engine can lint |
validate_ruleset |
Structurally validate a ruleset (alias, object, or YAML/JSON string) |
npm install
npm start # speaks MCP over stdioAdd to your client's MCP server config (e.g. Claude Desktop claude_desktop_config.json),
pointing at a local checkout:
{
"mcpServers": {
"common-openlint-mcp": {
"command": "node",
"args": ["/path/to/common-openlint-mcp/src/server.mjs"]
}
}
}Then ask: "Lint this OpenAPI with OpenLint and tell me what to fix."
- OpenLint — the linter engine and the
openlintCLI (spec) - common-openlint-api — the HTTP surface; this repo is the AI surface
- common-openlint-validator — the browser validator (validator.apicommons.org)
- common-openlint-pipeline
- API Commons rules
A project of API Evangelist, maintained openly under API Commons. Apache-2.0.