How to connect an AI tool directly to the WireMock Cloud MCP server, without the agent skills plugin
This guide walks you through configuring the MCP (Model Context Protocol) server necessary to natively use WireMock Cloud from an MCP-compatible AI tool such as Cursor or Claude Desktop.This enables automatic API discovery, mocking and test abstraction from any codebase as part of prompt-driven development with your chosen AI tool.Additionally, it enables you to skip the complexity of building out new services early on - which can hamper the rapid development by introducing more failure points - and instead use simulated APIs on WireMock to prototype new capabilities with less system overhead.
Most users should install the WireMock Cloud agent skills plugin instead - it bundles this same MCP server connection alongside expert guidance for your agent, with no separate setup step. Use this page if you want the MCP server on its own, without the skills plugin.
Note that while this article documents use with Cursor, Claude Desktop and VSCode specifically, WireMock Cloud’s MCP server will work with any AI-powered tool that supports MCP.
WireMock Cloud offers two ways to connect an AI tool via MCP:
Remote server (recommended) - a hosted HTTP server at https://mcp.wiremock.cloud/mcp. No local installation is required; your AI tool authenticates with your WireMock Cloud account via an OAuth sign-in in your browser the first time it connects, or with an API token for headless and CI clients that can’t complete a browser sign-in.
Local server - a stdio server launched on your machine by the WireMock CLI (wiremock mcp). Choose this if you need HTTP request authentication with locally stored credentials, or if your network can’t reach mcp.wiremock.cloud directly.
Both expose the same set of MCP tools. Use whichever matches your setup - you only need one.
Restart VSCode. VS Code will open a browser window to complete an OAuth sign-in the first time it connects - approve the trust dialog and sign in when prompted.
Open the Copilot chat window and confirm that the tools icon is present with a number above zero:To confirm everything is working correctly, check that you’re logged in to WireMock Cloud by running the following prompt:
Who am I logged into WireMock Cloud as?
If logged in, you’ll see your account details rather than being prompted to sign in.
Open your terminal or command prompt.
Add the WireMock MCP server using the Claude CLI, specifying the HTTP transport:
claude mcp add --transport http wiremock https://mcp.wiremock.cloud/mcp
Verify the server was added successfully:
claude mcp list
You should see “wiremock” in the list of configured MCP servers. If it shows “Needs authentication”, run /mcp inside a Claude Code session (or claude mcp login wiremock from the shell) and complete the OAuth sign-in that opens in your browser.
Save the configuration and press the refresh button in the Plugin Store. Windsurf will prompt you to sign in via OAuth in your browser on first connection.
Clients that can’t complete an interactive browser sign-in - CI pipelines, scripts, or other headless agents - can authenticate to the remote server with a WireMock Cloud API token instead of OAuth.Get your token from the account security page (see Authentication), then send it in the Authorization header using the Token scheme in place of the OAuth sign-in step:
Authorization: Token <your-api-token>
For example, to add the server to Claude Code without an interactive sign-in:
Other MCP clients that support custom headers for remote servers use a similar headers field - check your tool’s documentation for the exact configuration key.
Treat your API token like a password - anyone with it can access your WireMock Cloud account through the MCP server. Prefer OAuth sign-in for interactive use, and reserve API tokens for headless or CI environments where a browser isn’t available.
Click this button to install with Cursor:Or, follow these instructions:
Open Settings->Cursor settings.
Navigate to MCP.
Click Add new MCP server.
In the dialog, configure your server to run this command:
wiremock mcp
Verify Installation by looking for the green status dot next to the MCP server and the list of tool names.
If you have an existing real API integration, you can replace it with a WireMock stub. Generate the mock from documentation, source code, or other external description formats. This enables you to test your app in isolation without depending on live services.
Open the Copilot chat window and confirm that the tools icon is present with a number above zero:To confirm everything is working correctly, check that you’re logged in to WireMock Cloud by running the following prompt:
Who am I logged into WireMock Cloud as?
If logged in, you’ll see your account details rather than being prompted to sign in.
Open your terminal or command prompt.
Add the WireMock MCP server using the Claude CLI:
claude mcp add wiremock -- wiremock mcp
Verify the server was added successfully:
claude mcp list
You should see “wiremock” in the list of configured MCP servers.
If your agent shows an “unknown client” (or similar “invalid client”) error while trying to complete the OAuth sign-in for the remote MCP server, your agent has a cached OAuth client registration that the WireMock Cloud MCP server no longer recognizes. Clearing your agent’s stored credentials for the WireMock MCP server and signing in again resolves this.
Claude Code
Cursor
Codex CLI
GitHub Copilot CLI
GitHub Copilot / VS Code
Other agents
Clear the stored credentials and sign in again:
claude mcp logout wiremockclaude mcp login wiremock
On versions of Claude Code older than 2.1.186 (which don’t have mcp logout), remove and re-add the server instead:
claude mcp remove wiremockclaude mcp add --transport http wiremock https://mcp.wiremock.cloud/mcp
Then run /mcp inside a session and authenticate again.
Remove and re-add the server to force a fresh sign-in:
Open Settings -> Cursor Settings -> Tools & Integrations.
Remove the WireMock server entry.
Quit Cursor completely (not just close the window) and reopen it.
Re-add the WireMock server as described above and click Connect to sign in again.
Clear the stored credentials and sign in again:
codex mcp logout wiremockcodex mcp login wiremock
Delete the server to clear its cached credentials:
/mcp delete wiremock
Then re-add it as described in Installing the agent skills plugin (or reconfigure it manually) and complete the OAuth sign-in again when prompted.
VS Code - and the GitHub Copilot coding agent, which uses the same MCP client - caches OAuth client registrations centrally rather than per server:
Open the Command Palette (Cmd/Ctrl+Shift+P).
Run Authentication: Remove Dynamic Authentication Providers and select the WireMock entry.
Restart VS Code, then reconnect to the WireMock MCP server to sign in again.
Look for a way to clear cached MCP OAuth credentials or client registrations in your agent’s settings or documentation - the exact terminology varies (for example “clear credentials”, “logout”, “reset authentication”, or “remove dynamic client registration”). If your agent doesn’t expose a dedicated option, removing and re-adding the WireMock MCP server configuration has the same effect. Once cleared, reconnect to trigger a fresh OAuth sign-in.
Develop a new feature in your application that calls a fresh API. Quickly generate a WireMock stub for this API, and then wire it up to your app while in development mode.
If you have an existing real API integration, you can replace it with a WireMock Cloud mock. Generate the mock from documentation, source code, or other external description formats. This enables you to test your app in isolation without depending on live services.
Assistant
Responses are generated using AI and may contain mistakes.