Spectral

Spectral

Spectral records HTTP traffic from apps, uses an LLM to understand API calls, and generates MCP tools that let AI agents call private APIs directly without browser automation.

Category
Visit Server

README

<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/spectral-mcp/spectral/main/assets/banner-wide-dark.png"> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/spectral-mcp/spectral/main/assets/banner-wide-light.png"> <img src="https://raw.githubusercontent.com/spectral-mcp/spectral/main/assets/banner-wide-dark.png" alt="Spectral" width="600"> </picture> </p>

<p align="center"> <a href="https://pypi.org/project/spectral-mcp/"><img src="https://img.shields.io/pypi/v/spectral-mcp" alt="PyPI"></a> <a href="https://pypi.org/project/spectral-mcp/"><img src="https://img.shields.io/pypi/pyversions/spectral-mcp" alt="Python"></a> <a href="https://github.com/spectral-mcp/spectral/actions/workflows/release.yml"><img src="https://github.com/spectral-mcp/spectral/actions/workflows/release.yml/badge.svg" alt="CI"></a> <a href="LICENSE"><img src="https://img.shields.io/github/license/spectral-mcp/spectral" alt="License"></a> </p>

<p align="center"> <a href="#install">Install</a> · <a href="#why-spectral">Why Spectral</a> · <a href="#how-it-works">How it works</a> · <a href="https://www.getspectral.sh/documentation"><strong>Documentation</strong></a> · <a href="https://www.getspectral.sh/"><strong>Website</strong></a> </p>

AI agents shouldn't need browser automation. Mobile and web apps talk to private APIs all day — Spectral gives that same access to your AI agents.

<p align="center"> <img src="https://raw.githubusercontent.com/spectral-mcp/spectral/main/assets/demo.gif" width="750" alt="Spectral demo — analyze traffic, then Claude uses the API"> </p>

Why Spectral

Most apps — web, mobile, desktop — sit on top of undocumented HTTP APIs. Spectral records the traffic while you browse, uses an LLM to understand what each call does, and generates MCP tools that any AI agent can call.

Spectral supports multiple LLM providers — Anthropic, OpenRouter, OpenAI, Ollama, and any OpenAI-compatible endpoint. Run spectral config to pick your provider and model. Spectral will prompt for it on first analysis.

  • Works everywhere. Websites, mobile apps (Android), desktop apps, CLI tools — if it speaks HTTPS, Spectral can capture it.

  • Understands what you do, not just what the network sends. Spectral correlates your clicks and navigation with API calls to figure out the business meaning of each endpoint — not just its shape.

  • Tools that fix themselves. When a generated tool fails at runtime, the MCP server feeds the error back to an LLM and patches the tool automatically.

  • LLM at build time, not at runtime. The LLM is only used during analysis and self-repair. Once your tools work, every call is a direct HTTP request — fast, cheap, and deterministic.

  • Faster than browser automation. No headless browser, no fragile selectors, no waiting for pages to render. Spectral tools call the API directly, which is orders of magnitude faster and more reliable than controlling a browser with an agent.

  • Also generates API specs. Beyond MCP tools, Spectral can produce OpenAPI 3.1 specs from REST traffic and GraphQL SDL schemas from GraphQL traces — useful for documentation, code generation, or feeding other tools.

Install

The install script sets up Spectral, installs shell completions, and ensures your PATH is configured:

curl -LsSf https://getspectral.sh/install.sh | bash

If you prefer managing packages yourself, you can install directly with pip or uv — but you will need to set up shell completions manually:

pip install spectral-mcp
# or
uv tool install spectral-mcp

See the documentation for setup guides, capture instructions, and CLI reference.

How it works

  1. Capture — Chrome extension (web) or MITM proxy records traffic while you use the app
  2. Analyze — An LLM correlates your actions with API calls, infers endpoint patterns, and business meaning
  3. Authenticate — The CLI detects the auth flow and generates a login script. Run it once; the MCP server refreshes automatically
  4. Use — Start the MCP server. AI agents call the API directly

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured