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 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
pip install abelfeed-bidnetdirect
Get your API token on the Apify Actor page and export it:
export APIFY_TOKEN="apify_api_..."
Python Quickstart
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
# 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:
{
"mcpServers": {
"bidnetdirect": {
"url": "https://mcp.apify.com/?tools=abelfeed/bidnetdirect-solicitations-fast-api",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}
License
MIT - Abelfeed.