Skip to main content

adhistory-mcp

An MCP server that gives AI agents (Claude, Cursor and any other MCP client) ten data tools: competitor ads from the Google Ads Transparency Center, App Store and Google Play reviews, job listings from Workday, Greenhouse, Lever and Ashby, tables, invoices and bank statements from PDF links, email list cleaning, website screenshots and broken link checks.

Each tool runs one public Apify Actor on your own Apify account and returns the results as JSON, trimmed so they fit in an agent's context. You need a free Apify API token. You pay only the Actor's per-result price, which at the default limits is a few cents or less per call.

Quick start

  1. Create a free Apify account at https://console.apify.com/sign-up.
  2. Copy your API token: console.apify.com → Settings → API & Integrations.
  3. Add the server to your MCP client (examples below). It runs locally over stdio with uvx, so you need uv installed (curl -LsSf https://astral.sh/uv/install.sh | sh on macOS/Linux, or brew install uv).

Claude Desktop

Edit claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "adhistory": {
      "command": "uvx",
      "args": ["adhistory-mcp"],
      "env": { "APIFY_TOKEN": "apify_api_your_token_here" }
    }
  }
}

Restart Claude Desktop. The tools appear under the tools icon.

Claude Code

claude mcp add adhistory --env APIFY_TOKEN=apify_api_your_token_here -- uvx adhistory-mcp

Cursor

Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "adhistory": {
      "command": "uvx",
      "args": ["adhistory-mcp"],
      "env": { "APIFY_TOKEN": "apify_api_your_token_here" }
    }
  }
}

Other clients

Any MCP client that can launch a stdio server works: command uvx, argument adhistory-mcp, environment variable APIFY_TOKEN. Without uv: pip install adhistory-mcp, then run adhistory-mcp.

Tools

Tool What it returns Price per 1,000 results Default size Typical time
competitor_google_ads Ads a company runs on Google Search, YouTube, Shopping, Maps, Play and Display, from the Google Ads Transparency Center: headline and description of text ads, format, first/last shown, days running, countries, link. Or one summary row per domain (mode: advertiserCheck). $1.00 20 ads per advertiser 20-90 s
app_reviews App Store and Google Play reviews: rating, title, text, date, app version, developer reply. Star filter for complaints only. $0.10 20 per app 10-40 s
workday_jobs Open jobs from any *.myworkdayjobs.com career site; optional description, pay range, apply link. $1.00 20 jobs 10-60 s
ats_jobs Open jobs from Greenhouse, Lever and Ashby boards: department, location, remote flag, pay when published. $1.50 20 jobs 5-30 s
pdf_tables Tables from PDF links as rows, plus CSV and Excel links. $2.00 10 tables 10-60 s
bank_statement Bank statement PDFs as balances, totals, a balance check and transactions, plus Excel. $15.00 5 statements 10-40 s
invoice Invoice PDFs as number, dates, vendor, totals, tax and line items, plus Excel. $5.00 10 invoices 10-30 s
clean_email_list Syntax, MX record, disposable, role account and typo checks per email, with a valid/invalid/risky/unknown result. $0.20 up to 1,000 emails 5-30 s
website_screenshot Full-page or first-screen PNG/JPEG of public pages, returned as image URLs. $1.00 1 per URL (max 10) 10-30 s per page
broken_links Crawls a site and reports broken links, images and scripts with status, error and the pages they appear on. $1.00 10 pages, problems only 20-120 s

Each Actor also charges $0.00005 per run start. Prices are the Actors' public Apify Store prices at the time of writing; the Store page of each Actor is the source of truth.

Example prompts

  • "What Google Search ads is hubspot.com running in the US right now? Group them by message." → competitor_google_ads(domains=["hubspot.com"], country="US", platform="search", only_active_ads=true)
  • "Which of these 20 domains advertise on Google?" → competitor_google_ads(domains=[...], mode="advertiserCheck")
  • "Summarize the last 50 one- and two-star reviews of Notion on iOS and Android." → app_reviews(apps=["notion", "notion.id"], max_reviews_per_app=25, max_rating=2)
  • "List NVIDIA's remote software jobs posted this week." → workday_jobs(career_site_urls=["https://nvidia.wd5.myworkdayjobs.com/NVIDIAExternalCareerSite"], search_text="software", location_contains="Remote", posted_within_days=7)
  • "Which data roles are open at Airbnb and Palantir?" → ats_jobs(boards=["https://boards.greenhouse.io/airbnb", "https://jobs.lever.co/palantir"], search_text="data")
  • "Pull the table on pages 1-3 of this PDF into rows." → pdf_tables(pdf_urls=["https://.../report.pdf"], pages="1-3")
  • "Total the debits in this statement by merchant." → bank_statement(pdf_urls=["https://.../statement.pdf"])
  • "Which of these emails will likely bounce?" → clean_email_list(emails=[...])
  • "Screenshot our pricing page on mobile." → website_screenshot(urls=["example.com/pricing"], device="mobile")
  • "Find broken links on example.com." → broken_links(start_urls=["https://example.com"])

Cost control

  • Defaults are small, so a typical call costs well under $0.10.
  • Every run is capped by Apify's maxTotalChargeUsd, $0.50 per call by default. Set the environment variable APIFY_MAX_CHARGE_USD (for example 2) to allow larger runs.
  • Free Apify accounts include monthly platform credit, which covers many small calls.

Limits

  • Calls are synchronous and Apify stops waiting after 300 seconds, so very large requests fail with a clear message; ask for fewer results instead.
  • Responses are trimmed for the agent: long text fields are shortened, nested lists (table rows, transactions) are capped, and at most about 60,000 characters of JSON are returned. Full tables and statements are in the CSV/Excel links the PDF tools return.
  • clean_email_list works at DNS level. It does not connect to the mail server, so it cannot tell whether a specific mailbox exists.
  • The PDF tools need text-based PDFs at public URLs; scanned images are not read. Local files must be uploaded somewhere public first.
  • competitor_google_ads reads what Google publishes in the Transparency Center. Google does not publish ad spend, keywords or click data.
  • Pages behind a login are not supported by website_screenshot and broken_links.

Privacy

The server runs on your machine. Inputs go only to the Apify API under your account, and the token is sent only in the Authorization header to api.apify.com. Results are stored in your Apify account's storage under its normal retention.

Development

uv sync --group dev
uv run pytest
uv run adhistory-mcp   # starts the stdio server

License

MIT

Metadata

Release files for adhistory-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adhistory-mcp 0.1.0
File Size Uploaded Provenance Actions
adhistory_mcp-0.1.0.tar.gz 17.7 kB With provenance Details for adhistory_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adhistory-mcp 0.1.0
File Interpreter ABI Platform Actions
adhistory_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for adhistory_mcp-0.1.0-py3-none-any.whl

Total release size: 33.6 kB

Release files / adhistory_mcp-0.1.0.tar.gz

Download URL adhistory_mcp-0.1.0.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3dc9f37d2aac64f1d6689cc2f27f50fbee85a44e2f46c2b9bb4c7abbc481786a
BLAKE2b-256 checksum
How to use checksums
cbba0df24630192a7206f971d72451ad0727e4bae821128e594e8eb1987c41cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / adhistory_mcp-0.1.0-py3-none-any.whl

Download URL adhistory_mcp-0.1.0-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af61624d3da30dc75f8845e34eeeede81c79fc6c80f49c512d9333665ad2e8b2
BLAKE2b-256 checksum
How to use checksums
afd19c446b6ea4ec96b733e33164574db31797e69914395f4510533bb764a319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for adhistory-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for adhistory_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page