This repository provides a Model Context Protocol (MCP) Server for validating OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
- Validates OpenAPI 2.0 and 3.0 files
- Uses APIMatic’s API for comprehensive validation
- Supports both JSON and YAML formats
- Implements Model Context Protocol (MCP) for seamless integration
Ensure that Node.js v18+ is installed.
git clone https://github.com/apimatic/apimatic-validator-mcp.git
cd apimatic-validator-mcp
npm install
npm run build
To use the server, an APIMatic API key is required. Sign up at APIMatic and obtain the API key.
Modify the claude_desktop_config.json
file to integrate the MCP server. If the file does not exist, create one in the following location:
code $env:AppData\Claude\claude_desktop_config.json
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"APIMatic": {
"command": "node",
"args": [
"C:\\PATH\\TO\\PARENT\\FOLDER\\build\\index.js"
],
"env": {
"APIMATIC_API_KEY": "<Add your APIMatic token here>"
}
}
}
}
Once configured, a hammer icon should appear in Claude Desktop. Open it to verify that the validate-openapi-using-apimatic
tool is successfully integrated.
- Add an OpenAPI file.
- Provide a prompt to validate it.
- The validation results will be returned.