# GitHub OSS Lead Intelligence & Repo Health (MCP) (`the_magic_dragon/github-oss-lead-intel-mcp`) Actor

Enrich GitHub owner/repo targets with repository metadata, activity health scores (0-100), commercial signals, owner/org profile details, latest release metadata, and language breakdown. Built for Pay-per-Event, MCP agents, Clay, and n8n.

- **URL**: https://apify.com/the_magic_dragon/github-oss-lead-intel-mcp.md
- **Developed by:** [Cade Hockley](https://apify.com/the_magic_dragon) (community)
- **Categories:** AI, Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.70 / 1,000 repository enricheds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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

## GitHub OSS Lead Intelligence & Repo Health (MCP)

Enrich GitHub open-source repositories (`owner/repo` or `https://github.com/owner/repo`) with live **activity health scores (0–100)**, **commercial GTM signals**, **owner/organization profiles**, **latest release metadata**, and **language breakdowns**.

Designed for **AI agents (MCP)**, **Clay** outbound enrichment, **n8n** workflows, and **DevTools GTM / developer relations** pipelines with **Apify Pay-per-Event** pricing.

### Overview

Open-source adoption is one of the strongest intent signals for developer-focused B2B sales, ecosystem partnerships, and investment sourcing. This Actor normalizes GitHub repository targets, queries the official GitHub REST API (`api.github.com`), and returns structured qualification signals without requiring a heavyweight browser runtime.

#### Key Capabilities

- **Strict Input Normalization & Zero-Noise Validation:** Accepts `owner/repo` or canonical `https://github.com/owner/repo` URLs (including `.git` suffixes), while rejecting malformed strings, non-GitHub hosts, or deep URLs with extra path segments (`status: "invalid_input"`, `0` charges).
- **0–100 Activity Health Score:** Deterministic scoring across push recency (`daysSinceLastPush`), star adoption, fork engagement, active maintenance (`isArchived`), license clarity (`spdxLicense`), documentation/homepage presence, and release cadence.
- **Commercial Signals Object:** Extracts `hasHomepage`, `homepageUrl`, `isArchived`, `hasLicense`, `spdxLicense`, `starsCount`, `forksCount`, `openIssuesCount`, `daysSinceLastPush`, `ownerType`, `ownerCompany`, `ownerBlog`, and `ownerEmail`.
- **Owner / Organization Enrichment & Release Tracking:** Optionally fetches `/users/{owner}` and `/releases/latest` (treating 404 on repositories without releases as `latestRelease: null` rather than an error) plus `/languages` byte breakdowns.
- **Token-Safe & Quota-Aware:** Supports an optional `githubToken` (`Bearer`) for higher GitHub API rate limits (5,000 req/hr vs. 60 req/hr unauthenticated). Tokens are never logged or emitted in outputs or errors.

### Input & Output

#### Input Fields

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `repos` | `array<string>` | *Required* | List of `owner/repo` slugs or `https://github.com/owner/repo` URLs (up to 500 per run). |
| `githubToken` | `string` | `""` | Optional GitHub PAT (`Bearer`) to raise API quota. Marked secret and never echoed. |
| `includeOwnerProfile` | `boolean` | `true` | Fetch `/users/{owner}` for organization/user company, blog, location, and public email. |
| `includeLatestRelease` | `boolean` | `true` | Fetch `/releases/latest` for tag name, publish date, and release URL. |
| `conciseMcpMode` | `boolean` | `true` | Caps topic/language lists and omits verbose release bodies for LLM/MCP efficiency. |

#### Output Dataset Fields

| Field | Type | Description |
| --- | --- | --- |
| `repo` | `string \| null` | Canonical `owner/repo` slug. |
| `status` | `string` | `ok`, `invalid_input`, `not_found`, `rate_limited`, or `fetch_error`. |
| `ok` | `boolean` | `true` when repository metadata was retrieved (`HTTP 200`). |
| `activityHealthScore` | `integer` | Composite `0–100` maintenance & adoption score. |
| `commercialSignals` | `object \| null` | Commercial & technical qualification attributes (`hasHomepage`, `isArchived`, `spdxLicense`, `ownerCompany`, `ownerBlog`, etc.). |
| `ownerProfile` | `object \| null` | Organization or maintainer profile from `/users/{owner}`. |
| `latestRelease` | `object \| null` | Latest published release tag, timestamp, and URL (or `null` if none). |
| `languages` | `object` | Primary language, total bytes, and percentage breakdown. |

### Use Cases

- **DevTools & Infra B2B Outbound:** Identify fast-growing repositories matching your ICP, pull organization blogs/domains, and route active maintainers (`activityHealthScore >= 65`) into Clay enrichment.
- **Open-Source Dependency Due Diligence:** Check `daysSinceLastPush`, `isArchived`, SPDX licenses, and release cadence before adopting third-party OSS libraries.
- **AI Ecosystem & DevRel Copilots:** Expose real-time GitHub qualification signals directly inside Claude Desktop or Cursor via `mcp.apify.com`.

### Pay-per-Event Pricing & Store Discounts

This Actor uses **Apify Pay-per-Event (PPE)** billing on `repo-enriched`, with **automatic Apify Store discounts** for paid subscription tiers:

| Apify Tier | Price per Enriched Repo | Effective Rate / 1,000 Repos |
| --- | --- | --- |
| Free (`FREE`) | `$0.0050` | `US$5.00` |
| Starter (`BRONZE`) | `$0.0042` | `US$4.20` (16% off) |
| Scale (`SILVER`) | `$0.0035` | `US$3.50` (30% off) |
| Business (`GOLD`) | `$0.0027` | `US$2.70` (46% off) |
| Enterprise (`PLATINUM` / `DIAMOND`) | `$0.0022` / `$0.0017` | `US$2.20` / `US$1.70` |

- **Fair Billing Guarantee:** Malformed inputs (`invalid_input`), missing repositories (`not_found` / HTTP 404), GitHub rate limits (`rate_limited` / HTTP 403 or 429), and network errors incur **`$0.00`**.

### Example Input

```json
{
  "repos": [
    "apify/crawlee-python",
    "https://github.com/pydantic/pydantic"
  ],
  "includeOwnerProfile": true,
  "includeLatestRelease": true,
  "conciseMcpMode": true
}
```

### Example Output

```json
{
  "input": "apify/crawlee-python",
  "repo": "apify/crawlee-python",
  "owner": "apify",
  "name": "crawlee-python",
  "status": "ok",
  "ok": true,
  "htmlUrl": "https://github.com/apify/crawlee-python",
  "primaryLanguage": "Python",
  "activityHealthScore": 97,
  "commercialSignals": {
    "hasHomepage": true,
    "homepageUrl": "https://crawlee.dev/python",
    "isArchived": false,
    "hasLicense": true,
    "spdxLicense": "Apache-2.0",
    "starsCount": 8700,
    "forksCount": 750,
    "openIssuesCount": 140,
    "daysSinceLastPush": 1,
    "ownerType": "Organization",
    "ownerCompany": null,
    "ownerBlog": "https://apify.com",
    "ownerEmail": "hello@apify.com"
  },
  "latestRelease": {
    "tagName": "v0.6.0",
    "publishedAt": "2026-10-15T12:00:00Z",
    "prerelease": false
  },
  "error": null
}
```

### Hosted MCP Configuration (`mcp.apify.com`)

Connect this Actor directly to Claude Desktop, Cursor, or any MCP-compatible client using Apify's hosted MCP endpoint:

```json
{
  "mcpServers": {
    "apify-github-oss-intel": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?actors=the_magic_dragon/github-oss-lead-intel-mcp",
        "--header",
        "Authorization: Bearer ${APIFY_TOKEN}"
      ]
    }
  }
}
```

### Clay & n8n Integration Tips

- **Clay:** Add an **Apify — Run Actor** enrichment column targeting `the_magic_dragon~github-oss-lead-intel-mcp`. Pass `{"repos": ["{{GitHub Repo URL}}"], "conciseMcpMode": true}` and filter qualified leads on `ok == true`, `activityHealthScore >= 65`, and `commercialSignals.isArchived == false`. Use `commercialSignals.ownerBlog` or `commercialSignals.homepageUrl` to chain into company domain enrichment.
- **n8n:** Trigger from GitHub stargazer/webhook events or scheduled CRM enrichment using the official **Apify** node (`Run an Actor and get dataset items`). Route `status == "rate_limited"` items to a retry branch with a configured `githubToken` secret.

### FAQ & Troubleshooting

- **What happens if I hit GitHub's 60 req/hr unauthenticated rate limit?** Supply a read-only Personal Access Token via `githubToken` (raises quota to 5,000 req/hr; kept secret and never echoed), or set `includeOwnerProfile` / `includeLatestRelease` to `false` to save API calls per repo.
- **Do repositories without GitHub Releases fail?** No — HTTP 404 on `/releases/latest` is handled cleanly as `latestRelease: null` while still returning repo metrics and health score.
- **Am I charged on 404 or rate-limited repos?** No. Only `HTTP 200` repository enrichments trigger a `repo-enriched` charge.

# Actor input Schema

## `repos` (type: `array`):

List of GitHub repositories in 'owner/repo' format or full 'https://github.com/owner/repo' URLs (up to 500 per run).

## `githubToken` (type: `string`):

Optional GitHub Personal Access Token (Bearer) to raise API quota from 60 to 5,000 requests/hour. Never logged or emitted in outputs or errors.

## `includeOwnerProfile` (type: `boolean`):

Fetch /users/{owner} to enrich company, blog/website, public email, follower count, and organization metadata.

## `includeLatestRelease` (type: `boolean`):

Fetch /releases/latest for release tag, published timestamp, and release URL (404 returns latestRelease: null without failing).

## `conciseMcpMode` (type: `boolean`):

Trim verbose language/release payloads to keep dataset items compact for LLM and MCP context windows.

## Actor input object example

```json
{
  "repos": [
    "apify/crawlee-python",
    "https://github.com/pydantic/pydantic"
  ],
  "includeOwnerProfile": true,
  "includeLatestRelease": true,
  "conciseMcpMode": true
}
```

# Actor output Schema

## `results` (type: `string`):

Structured per-repository health scores, commercial signals, owner profile metadata, latest release, and language breakdown.

# 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 = {
    "repos": [
        "apify/crawlee-python",
        "https://github.com/pydantic/pydantic"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("the_magic_dragon/github-oss-lead-intel-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 = { "repos": [
        "apify/crawlee-python",
        "https://github.com/pydantic/pydantic",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("the_magic_dragon/github-oss-lead-intel-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 '{
  "repos": [
    "apify/crawlee-python",
    "https://github.com/pydantic/pydantic"
  ]
}' |
apify call the_magic_dragon/github-oss-lead-intel-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,the_magic_dragon/github-oss-lead-intel-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/pQlcvUNZUZYxepjVS/builds/NVzYXNcKVedYlPlzS/openapi.json
