# Datawharf MCP: SEC, SAM.gov, EU TED, Research & YouTube Tools (`datawharf-tools/datawharf-mcp`) Actor

One MCP server that gives AI agents five tools: SEC EDGAR filings and XBRL facts, SAM.gov contract opportunities, EU TED tenders, Crossref/PubMed/ClinicalTrials.gov search, and YouTube Data API (bring your own key). Official public APIs, no scraping.

- **URL**: https://apify.com/datawharf-tools/datawharf-mcp.md
- **Developed by:** [Datawharf Tools](https://apify.com/datawharf-tools) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 tool calls

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Datawharf MCP: SEC, SAM.gov, EU TED, Research and YouTube tools for AI agents

One MCP server, five tools. It lets an MCP client (an AI assistant or agent framework) call the Datawharf Tools Actors as ordinary tools and get back flat rows:

| Tool | Underlying Actor | What it returns |
|---|---|---|
| `sec_edgar` | [sec-edgar-api](https://apify.com/datawharf-tools/sec-edgar-api) | SEC filings, XBRL financial facts, company profiles (official data.sec.gov) |
| `sam_gov_opportunities` | [sam-gov-opportunities](https://apify.com/datawharf-tools/sam-gov-opportunities) | US federal contract opportunities by keyword, NAICS, set-aside, state, agency |
| `eu_ted_tenders` | [eu-ted-tenders](https://apify.com/datawharf-tools/eu-ted-tenders) | EU public procurement notices from TED by country, CPV code, keyword |
| `research_search` | [research-search](https://apify.com/datawharf-tools/research-search) | Crossref papers, PubMed citations, ClinicalTrials.gov studies (metadata and links, no abstracts) |
| `youtube_data` | [youtube-data-api](https://apify.com/datawharf-tools/youtube-data-api) | YouTube Data API v3 search, channels, comments (bring your own Google API key) |

All tools use official public APIs. No scraping. Not affiliated with the SEC, GSA/SAM.gov, the EU, Crossref, NLM/NIH, or YouTube/Google.

### Connect

The Actor runs in Apify Standby mode and serves Streamable HTTP MCP at `/mcp`. Use the Actor's Standby URL with your own Apify token as a Bearer token:

```json
{
  "mcpServers": {
    "datawharf": {
      "url": "https://<standby-url-from-the-actor-page>/mcp",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

Each tool call runs the underlying Actor **under your own Apify account**, so the Actor's per-row charges (about $0.34 to $0.40 per 1,000 rows) go on your account as they would if you ran it yourself. Rows returned to the model are capped at 100 per call; the full dataset stays in the run.

### Pricing (proposal, not yet configured)

Pay per event, one event per successful tool call:

| Event | Proposed price |
|---|---|
| `tool-call` | $0.005 |

Rationale: the underlying Actors already bill per result row, so this event only pays for the MCP wrapper. It is deliberately below the roughly $0.06 per-call price the closest research-MCP incumbent charges (see the research-search README). Failed calls are not charged. Before publishing, the owner must create the `tool-call` event in the Actor's monetization settings on Apify; until then `Actor.charge` calls are harmless no-ops for non-monetized runs. Evidence note: the whole Apify MCP category summed to roughly 970 users per 30 days on 2026-11-08, so expect small volume.

### Develop and test

```bash
npm install
npm test        # 7 tests: tool list, argument forwarding, auth, failure, truncation, validation, health probe
```

The tests start the real Streamable HTTP server in-process on an ephemeral port with a mocked Actor runner and connect to it with the official MCP SDK client. They never call Apify or any external service.

### Limits and notes

- Stateless server: a new MCP session per request, so it fits Standby and scales to zero.
- `youtube_data` needs a Google API key passed as a tool argument; quota is billed to your Google project. Review the YouTube terms before publishing a listing (owner call).
- Not investment, legal or medical advice.

### Privacy

The server keeps no data. Your Apify token is used in memory for the run call only and is never logged or stored. Contact: datawharf@gmail.com.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `mcpEndpoint` (type: `string`):

Point your MCP client here with your Apify token as a Bearer header.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("datawharf-tools/datawharf-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("datawharf-tools/datawharf-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call datawharf-tools/datawharf-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datawharf-tools/datawharf-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/b19MgnP1qhR8Cmxpq/builds/Y0MRMc3bCif46lNpH/openapi.json
