Skip to main content

regex101 API and AI integrations

Connect your tools to regex101 through the workspace API, MCP, or editor links.

Your taskUse
Read or save workspaces from codeWorkspace API
Work with regex101 from an AI clientMCP server
Open the editor with supplied textURL parameters
Render a text explanationExplain Regex API
Parse syntax inside your applicationRegex Parser

Use the regex101 skill to give compatible agents a workflow for saved regexes and unit-test definitions.

HTTP endpoints​

Use https://regex101.com/api for REST requests and https://regex101.com/mcp for MCP connections.

The interactive API reference lists routes, request schemas, and responses. Its OpenAPI JSON supports client tooling.

For a self-hosted integration, use your deployment's base URL and API reference.

Parsing and matching​

The Explain Regex API returns explanations. The parser package returns syntax tokens inside your application. Neither runs a pattern against test text.

To execute matches, use a regex engine in your application. The workspace API stores editor data; it does not expose a remote matching endpoint.