# Fitter [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/PxyUp/fitter  
**GitHub Stars:** 133  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/fitter

## Description
Turn any website or API into structured JSON with LLM-authored declarative scraping configs.

## Tools
Capabilities this server exposes over MCP:

- **fitter_run** — Run a Fitter config passed inline (JSON or YAML string) and return the extracted data as JSON. Accepts an optional `input` value available in the config via `{{{FromInput=.}}}` / `{{{FromInput=json.path}}}
- **fitter_run_file** — Same as `fitter_run` but reads the config from a local `.json`/`.yaml` file
- **fitter_run_url** — Same as `fitter_run` but downloads the config from an HTTP(S) URL, e.g. a raw GitHub link
- **fitter_inspect_url** — Fetch a URL and return a compact structure outline + candidate selectors/paths (gjson paths for JSON; repeated-element/list-row selectors for HTML) so the model authors a config first-try instead of guessing selectors and getting nulls. Detects client-rendered SPAs and can `render` them in a headle…
- **fitter_validate_config** — Validate a config without executing it (structure, `response_type`, connector data source, model). Useful while iterating on a config
- **fitter_config_reference** — Return a condensed reference of the whole config format (connectors, parsers, model/field schema, placeholders, notifiers, references, limits) with working examples, so the model can author configs without external docs

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "fitter": {
    "url": "https://api.open-meteo.com/v1/forecast?latitude="
  }
}
```

## Documentation

## What Fitter MCP server does

Fitter lets an MCP client describe a data-extraction job as JSON or YAML instead of generating a one-off scraping program. A config specifies a source, how to retrieve it, and how to map response data into structured fields. Sources can include HTTP requests, a headless browser, local files, or static values. Parsers and selectors support JSON paths, CSS selectors, XPath, and related response formats.

The Fitter MCP server returns extracted results as JSON. Configs can be authored by an agent using the built-in format reference, checked before execution, and then saved for later reuse with Fitter’s other modes, such as its CLI or service operation.

## How it works

Use `fitter_run` when the config is available as an inline JSON or YAML string. Its optional `input` value can be inserted into a config through the documented `FromInput` placeholders. `fitter_run_file` loads a `.json` or `.yaml` config from the local machine, while `fitter_run_url` downloads one from an HTTP(S) address such as a raw repository URL.

`fitter_validate_config` checks the config structure, response type, connector data source, and model without fetching the target data. `fitter_config_reference` supplies a condensed schema reference with examples covering connectors, parsers, fields, placeholders, notifiers, references, and limits.

## Setup and configuration

The Fitter MCP server is distributed as a native binary, a Claude Desktop `.mcpb` bundle, and Docker images. It uses stdio by default. Claude Desktop can register the executable under `mcpServers`, and Claude Code can add it with `claude mcp add`. Building from source uses the Go command under `cmd/mcp`.

HTTP, static, and file connectors work without a browser installation. Configs using the Playwright connector need compatible Playwright browsers. The native binary can download them on first use when the connector sets `install` to true; the Playwright Docker image includes Chromium, Firefox, and WebKit.

Pass `--http` to expose the streamable HTTP transport. `FITTER_MCP_HTTP_ADDR` selects the listen address, `FITTER_MCP_AUTH_TOKEN` protects requests with a bearer token, and `FITTER_MCP_STATELESS=true` disables per-session state. `FITTER_MCP_METRICS_ADDR` enables a separate Prometheus metrics endpoint.

## Tools and capabilities

The Fitter MCP server provides tools for:

- Running inline, local-file, or remote configs.
- Validating configs before execution.
- Inspecting URL structures and suggesting selectors or paths.
- Returning the config schema with working examples.
- Passing input values into reusable configs.
- Using HTTP, browser, file, and static connectors with structured parsing.

Configs can also use pagination, cached references, host rate limits, and notifiers.

## Limitations and notes

Browser-based extraction has additional runtime requirements, and the Playwright driver version must match the version used by the build. The slim Docker image does not include browsers, so browser workloads should use the Playwright image or install compatible browsers separately.

HTTP mode is unauthenticated unless `FITTER_MCP_AUTH_TOKEN` is set. If no token is configured, the documented guidance is to bind the endpoint to localhost or place it behind a proxy. Metrics are also unauthenticated and should be bound to a private interface when enabled. Service-only fields such as `trigger_config` and `http_server` are ignored during MCP calls.

_Full upstream README: https://allmcps.com/mcp/fitter/readme_

