MCP Integration
Connect BidStacker to Claude Desktop, Claude Code, or any MCP-compatible AI agent for hands-free proposal management.
infoWhat is MCP?
The Model Context Protocol (MCP) is a standard for giving AI agents access to external tools and data. BidStacker's MCP server exposes 29 tools that let AI agents search RFPs, create proposals, run compliance checks, and more — all through natural language.
buildSetup
1. Install the MCP Server
2. Configure for Claude Code
Create a .mcp.json in your project root:
{
"mcpServers": {
"bidstacker": {
"command": "node",
"args": ["packages/mcp-server/dist/bin/bidstacker-mcp.js"],
"env": {
"NEXT_PUBLIC_SUPABASE_URL": "your-supabase-url",
"SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key",
"ANTHROPIC_API_KEY": "your-anthropic-key"
}
}
}
}3. HTTP Transport (Optional)
For web-based integrations, run the HTTP server:
keyEnvironment Variables
| Variable | Required | Description |
|---|---|---|
| NEXT_PUBLIC_SUPABASE_URL | Yes | Supabase project URL |
| SUPABASE_SERVICE_ROLE_KEY | Yes | Service role key (bypasses RLS) |
| ANTHROPIC_API_KEY | Yes | For AI generation and matching |
| SAM_GOV_API_KEY | No | For federal sync (SAM.gov) |
| BIDSTACKER_DEFAULT_ORG_ID | No | Default org for tools that need one |
NEXT_PUBLIC_SUPABASE_URLRequiredSupabase project URL
SUPABASE_SERVICE_ROLE_KEYRequiredService role key (bypasses RLS)
ANTHROPIC_API_KEYRequiredFor AI generation and matching
SAM_GOV_API_KEYOptionalFor federal sync (SAM.gov)
BIDSTACKER_DEFAULT_ORG_IDOptionalDefault org for tools that need one
constructionAvailable Tools (29)
search_rfpsSearch RFPs by keyword, state, agency, NAICS, set-aside, deadline, or match score
get_rfpGet full details of a specific RFP
get_rfp_classificationGet AI classification breakdown (NAICS sectors, keywords, categories)
get_matchesGet top RFP matches for your organization sorted by score
score_rfp_for_orgCalculate or recalculate match score for a specific RFP
list_proposalsList proposals filtered by status or linked RFP
get_proposalGet full proposal details including all sections
create_proposalCreate a new proposal, optionally from a template
update_proposal_sectionUpdate a section title and/or body
add_proposal_sectionAdd a new section at a specific position
set_proposal_statusChange proposal status (draft/review/submitted/awarded/lost)
get_organizationGet organization profile including capabilities and matching framework
update_organizationUpdate organization profile fields
generate_matching_frameworkUse AI to generate an optimized matching framework
generate_proposal_draftGenerate content for all empty sections in a proposal
generate_sectionGenerate content for a single proposal section
ai_improveImprove, shorten, expand, or summarize text
run_compliance_checkRun compliance analysis on a proposal
list_templatesList available proposal templates
get_templateGet template details including sections
apply_templateApply a template to an existing proposal
sync_federalSync federal opportunities from SAM.gov
sync_stateSync state/local government opportunities
get_sync_statusGet recent sync history and statistics
list_reference_docsList reference documents for your organization
get_reference_docGet a reference document with content
create_reference_docCreate a new reference document
delete_reference_docDelete a reference document
find_and_generateFind best matches and optionally auto-generate a proposal
play_circleExample Workflows
Find and Bid on Contracts
1. search_rfps — Find matching opportunities
2. get_rfp — Review full details
3. create_proposal — Start a proposal from template
4. generate_proposal_draft — AI-generate all sections
5. run_compliance_check — Verify compliance
One-Click Bid (Composite)
Use find_and_generate with auto_generate: true to find the top match and automatically create a full proposal draft in one step.