search_bills

Pack: propublica-congress · Endpoint: https://gateway.pipeworx.io/propublica-congress/mcp

Search congressional bills by keyword. Returns bill ID, title, sponsor, status, and latest action. Example: search_bills(“climate change”, 118).

Parameters

NameTypeRequiredDescription
_apiKeystringyesProPublica Congress API key
querystringyesKeywords to search for in bill text/titles
congressnumbernoCongress number to search (default: 118)

Example call

Arguments

{
  "_apiKey": "your-propublica-congress-api-key",
  "query": "climate change",
  "congress": 118
}

curl

curl -X POST https://gateway.pipeworx.io/propublica-congress/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_bills","arguments":{"_apiKey":"your-propublica-congress-api-key","query":"climate change","congress":118}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_bills', {
  "_apiKey": "your-propublica-congress-api-key",
  "query": "climate change",
  "congress": 118
});

More examples

{
  "_apiKey": "your-propublica-congress-api-key",
  "query": "infrastructure"
}

Response shape

Always returns: query, congress, count, bills

FieldTypeDescription
querystringSearch query
congressnumberCongress number
countnumberNumber of results found
billsarrayList of bills (up to 20)
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Search query"
    },
    "congress": {
      "type": "number",
      "description": "Congress number"
    },
    "count": {
      "type": "number",
      "description": "Number of results found"
    },
    "bills": {
      "type": "array",
      "description": "List of bills (up to 20)",
      "items": {
        "type": "object",
        "properties": {
          "bill_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill ID"
          },
          "bill_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill type (H.R., S., etc.)"
          },
          "number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill number"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill title"
          },
          "sponsor_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sponsor name"
          },
          "sponsor_party": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sponsor party"
          },
          "sponsor_state": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sponsor state"
          },
          "introduced_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Introduction date"
          },
          "latest_action_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Latest major action date"
          },
          "latest_action": {
            "type": [
              "string",
              "null"
            ],
            "description": "Latest major action"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Currently active"
          },
          "primary_subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary subject"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bill summary"
          }
        }
      }
    }
  },
  "required": [
    "query",
    "congress",
    "count",
    "bills"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "propublica-congress": {
      "url": "https://gateway.pipeworx.io/propublica-congress/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026