regex101 API and AI integrations
Connect your tools to regex101 through the workspace API, MCP, or editor links.
| Your task | Use |
|---|---|
| Read or save workspaces from code | Workspace API |
| Work with regex101 from an AI client | MCP server |
| Open the editor with supplied text | URL parameters |
| Render a text explanation | Explain Regex API |
| Parse syntax inside your application | Regex 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.