Metadata-Version: 2.4
Name: abelfeed-bidnetdirect
Version: 0.1.0
Summary: Python SDK, CLI, and MCP client for US Government Solicitations on BidNet Direct (powered by Abelfeed on Apify)
Author: Abelfeed
License-Expression: MIT
Project-URL: Homepage, https://apify.com/abelfeed/bidnetdirect-solicitations-fast-api
Project-URL: Repository, https://github.com/abelfeed/bidnetdirect-solicitations-api
Project-URL: Issues, https://github.com/abelfeed/bidnetdirect-solicitations-api/issues
Keywords: bidnet,bidnetdirect,government-bids,rfp,procurement,govtech,apify,mcp
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: apify-client>=1.8.0
Dynamic: license-file

# BidNet Direct Solicitations API (Python SDK, CLI & MCP)

Lightweight Python client, CLI (`bidnetdirect-fetch`), and **MCP server configuration** for extracting **Open** and **Closed** US government solicitations (Federal, State & Local, Member Agency) from **BidNet Direct**.

Powered by [**Abelfeed BidNet Direct Solicitations Fast API**](https://apify.com/abelfeed/bidnetdirect-solicitations-fast-api) on Apify - built on a fast HTTP engine (zero browser overhead, ISO-8601 timestamps with UTC offsets, 57 US states/territories, 20 NAICS categories, keyword post-filtering, and strict zero-PII output).

---

## Installation

```bash
pip install abelfeed-bidnetdirect
```

Get your API token on the [Apify Actor page](https://apify.com/abelfeed/bidnetdirect-solicitations-fast-api) and export it:

```bash
export APIFY_TOKEN="apify_api_..."
```

---

## Python Quickstart

```python
from abelfeed_bidnetdirect import BidNetDirectClient

client = BidNetDirectClient()

# Open Construction RFPs in California with exact ISO-8601 closing timestamps
bids = client.fetch(
    status="open",
    location="California",
    category="Construction",
    publish_date="WEEK_1",
    max_items=50,
    include_details=True,
    exclude_keywords=["janitorial", "landscaping"],
)

for b in bids[:5]:
    print(b["solicitationId"], b["closingAtIso"], b["title"])
```

---

## CLI Usage

```bash
# Latest 25 open Federal bids mentioning "cybersecurity"
bidnetdirect-fetch --scope federal --keywords cybersecurity --max-items 25 -o bids.json

# Closed Member Agency bids with public issuing organization & descriptions
bidnetdirect-fetch --status closed --scope member_agency --max-items 20
```

---

## MCP Integration (Claude Desktop / Cursor / Windsurf)

Connect AI agents directly to BidNet Direct procurement feeds via Apify MCP:

```json
{
  "mcpServers": {
    "bidnetdirect": {
      "url": "https://mcp.apify.com/?tools=abelfeed/bidnetdirect-solicitations-fast-api",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

---

## License

MIT - Abelfeed.
