Install Openapi Lint in Claude Code
What you need first
- Claude Code, installed.
- Nothing else: the server runs on its publisher's machines and Claude Code connects to it.
- Your own value for
YOUR_OCP_APIM_SUBSCRIPTION_KEY.
Steps
- Run this in a terminal, in the project folder. It adds the server for you in that
project; put
--scope userafterclaude mcp addto have it in every project.
claude mcp add --transport http openapi-lint https://apim-agentforge-6lfm33.azure-api.net/openapi-lint/mcp --header 'Ocp-Apim-Subscription-Key: YOUR_OCP_APIM_SUBSCRIPTION_KEY' - Replace
YOUR_OCP_APIM_SUBSCRIPTION_KEYwith your own value. - Start Claude Code and type
/mcp: the server is listed with its state.
Check it worked
Ask Claude Code: List the tools of openapi-lint.
If it does not start
- 401 Unauthorized
- The endpoint wants a sign-in or a key. Sign in when Claude Code asks, or check the value in place of the placeholder.
- The server starts, but its tools fail
- A
YOUR_…placeholder is still in the config, or its value is wrong.