Skip to main content
Glama
README.md
# opstoolkit-mcp

An MCP server that lets AI assistants (Claude Desktop, Cursor, ChatGPT and other MCP clients) call the paid [OpsToolkit Apify Actors](https://apify.com/opstoolkit) directly: business leads, company contacts, email validation, website to markdown, OCR, SEO audits and more.

You bring your own Apify token. Every run is billed to **your** Apify account at the Actor's pay-per-event price, and the Actor author is paid through Apify. This server holds no keys and adds no markup.

- Node.js 20 or newer, stdio transport, one runtime dependency (`@modelcontextprotocol/sdk`).
- Each tool calls `POST https://api.apify.com/v2/acts/opstoolkit~<actor>/run-sync-get-dataset-items` and returns the dataset items.
- Every tool description states its price, so the assistant (and you) can see the cost before a run.

## Setup

1. Create an Apify account and copy a token from Apify Console, Settings, API and integrations.
2. Add the server to your client with `APIFY_TOKEN` in its environment.

### Claude Desktop

Edit `claude_desktop_config.json` (Settings, Developer, Edit Config):

```json
{
  "mcpServers": {
    "opstoolkit": {
      "command": "npx",
      "args": ["-y", "opstoolkit-mcp"],
      "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (global):

```json
{
  "mcpServers": {
    "opstoolkit": {
      "command": "npx",
      "args": ["-y", "opstoolkit-mcp"],
      "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
    }
  }
}
```

### npx (any client, or a quick check)

```bash
APIFY_TOKEN=YOUR_APIFY_TOKEN npx -y opstoolkit-mcp
```

On Windows PowerShell: `$env:APIFY_TOKEN="YOUR_APIFY_TOKEN"; npx -y opstoolkit-mcp`.

Until the package is on npm, run it from source: `git clone https://github.com/eliosaliba166-bit/opstoolkit`, then `cd opstoolkit/mcp && npm install && npm run build`, and point your client at `node /path/to/opstoolkit/mcp/dist/index.js`.

### Docker

```bash
docker build -t opstoolkit-mcp .
docker run -i --rm -e APIFY_TOKEN=YOUR_APIFY_TOKEN opstoolkit-mcp
```

## Tools and prices

Prices are Apify pay-per-event prices from each Actor's Store page. Check the page before a big run, since prices can change.

| Tool | Actor | What it does | Price |
|---|---|---|---|
| `local_business_leads` | [local-business-leads](https://apify.com/opstoolkit/local-business-leads) | Businesses by type and place with address, phone, website, socials, coordinates. Overture Maps data. | $0.40 per 1,000 businesses |
| `company_contact_finder` | [company-contact-finder](https://apify.com/opstoolkit/company-contact-finder) | Role emails, phones, contact page, address and socials from company websites. | $2.50 per 1,000 websites, failed sites free |
| `email_syntax_mx_validator` | [email-syntax-mx-validator](https://apify.com/opstoolkit/email-syntax-mx-validator) | Valid, risky, invalid or unknown verdict per address. DNS only. | $0.40 per 1,000 addresses |
| `website_to_markdown_rag` | [website-to-markdown-rag](https://apify.com/opstoolkit/website-to-markdown-rag) | Site to clean markdown and RAG chunks. | $1.50 per 1,000 pages |
| `ai_structured_extractor` | [ai-structured-extractor](https://apify.com/opstoolkit/ai-structured-extractor) | Web pages or text to validated JSON from fields or a JSON Schema. | About $0.005 per page, model included |
| `image_pdf_ocr` | [image-pdf-ocr](https://apify.com/opstoolkit/image-pdf-ocr) | Text from images and scanned PDFs, 7 languages, AI mode for receipts. | From $1.50 per 1,000 pages |
| `dataset_cleaner` | [dataset-cleaner](https://apify.com/opstoolkit/dataset-cleaner) | Dedupe and normalize scraper, CSV or JSON rows. No AI. | $0.0003 per row written |
| `site_seo_link_audit` | [site-seo-link-audit](https://apify.com/opstoolkit/site-seo-link-audit) | Page-by-page SEO and broken link audit. | $3 per 1,000 pages |
| `website_tech_stack_detector` | [website-tech-stack-detector](https://apify.com/opstoolkit/website-tech-stack-detector) | CMS, ecommerce, analytics, CDN, hosting and email provider per domain. | $1 per 1,000 websites, unreachable sites free |
| `domain_rank_lookup` | [domain-rank-lookup](https://apify.com/opstoolkit/domain-rank-lookup) | Majestic Million rank and 0 to 100 authority score per domain. | $0.30 per 1,000 domains |
| `sec_edgar_company_data` | [sec-edgar-company-data](https://apify.com/opstoolkit/sec-edgar-company-data) | Reported financials, filing lists and profiles from SEC EDGAR. | $0.003 per company |
| `product_price_monitor` | [product-price-monitor](https://apify.com/opstoolkit/product-price-monitor) | Price, stock and rating from product pages, with change since the last run. | $0.002 per product |

Each tool's input schema mirrors the key fields of the Actor's own input schema, so the descriptions you see in your client are the Actor's. Where an Actor can run up a large bill from one call, the tool uses a small default (for example 25 leads or 10 pages) unless you ask for more.

## Cost and output controls

All optional, set in the server's `env`:

| Variable | Default | Meaning |
|---|---|---|
| `APIFY_TOKEN` | required | Your Apify API token. |
| `OPSTOOLKIT_MAX_COST_USD` | `1` | Spending cap per tool call, sent to Apify as `maxTotalChargeUsd`. `0` removes the cap. |
| `OPSTOOLKIT_MAX_ITEMS` | `100` | Most items fetched per call. |
| `OPSTOOLKIT_MAX_CHARS` | `40000` | Output is cut to about this many characters and a note says how many items were left out. Items that were cut were still produced and billed by Apify. |
| `OPSTOOLKIT_TIMEOUT_SECS` | `290` | Request timeout. Apify's synchronous endpoint itself stops at 5 minutes, so use smaller batches for big jobs. |

The token is sent in an `Authorization` header and is removed from error messages. The server makes no calls except to the Apify API.

## Development

```bash
npm install
npm run build
npm test      # builds, then runs a stdio smoke test against a local mock of the Apify API (no real calls, no cost)
```

## License

MIT for this server's code. The Actors it calls are separate products with their own terms and pricing.