Skip to content

Capture Your Own APIs

Reverse-engineer any web, desktop, or mobile app into MCP tools.

Follow the installation steps if you haven’t already.

  1. Navigate to the web app you want to reverse-engineer
  2. Click the Spectral extension icon → Start Capture
  3. Browse the application — exercise the workflows you care about
  4. Click Stop & Send — the capture is sent to the CLI via native messaging and stored automatically

You can repeat this for multiple sessions; captures are merged during analysis.

Generate MCP tools from the captured traffic:

Terminal window
spectral mcp analyze myapp

If the app requires authentication, the fastest way is to extract tokens directly from your capture:

Terminal window
spectral auth extract myapp

This scans your captured traffic for auth headers and stores them. The tokens will expire eventually — see Authentication for renewable alternatives like generated login scripts.

Your tools are ready. Authentication is handled automatically using stored tokens.

See Capture — Web for the full capture reference, or Desktop and Mobile for non-browser traffic.