get_members
Pack: congress · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_members for the schema, then POST the same URL with its arguments for the data.
Get current members of Congress with their name, party, state, district (for representatives), and contact information.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | no | Number of results to return (default: 50, max: 600) |
Example call
Arguments
{
"limit": 50
}
curl
curl -X POST https://gateway.pipeworx.io/congress/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_members","arguments":{"limit":50}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_members', {
"limit": 50
});
Response shape
Always returns: total, returned, members
| Field | Type | Description |
|---|---|---|
total | number | Total current members of Congress |
returned | number | Number of members returned |
members | array |
Full JSON Schema
{
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total current members of Congress"
},
"returned": {
"type": "number",
"description": "Number of members returned"
},
"members": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role_id": {
"type": [
"number",
"null"
],
"description": "Role ID"
},
"person_id": {
"type": [
"number",
"null"
],
"description": "Person ID"
},
"name": {
"type": [
"string",
"null"
],
"description": "Member full name"
},
"sortname": {
"type": [
"string",
"null"
],
"description": "Member name in sort format"
},
"gender": {
"type": [
"string",
"null"
],
"description": "Gender"
},
"birthday": {
"type": [
"string",
"null"
],
"description": "Birth date"
},
"role_type": {
"type": [
"string",
"null"
],
"description": "Role type (senator or representative)"
},
"title": {
"type": [
"string",
"null"
],
"description": "Official title"
},
"party": {
"type": [
"string",
"null"
],
"description": "Political party"
},
"state": {
"type": [
"string",
"null"
],
"description": "State code"
},
"state_name": {
"type": [
"string",
"null"
],
"description": "State name"
},
"district": {
"type": [
"number",
"null"
],
"description": "Congressional district (for representatives)"
},
"startdate": {
"type": [
"string",
"null"
],
"description": "Role start date"
},
"enddate": {
"type": [
"string",
"null"
],
"description": "Role end date"
},
"link": {
"type": [
"string",
"null"
],
"description": "GovTrack member URL"
}
}
}
}
},
"required": [
"total",
"returned",
"members"
]
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the congress pack
{
"mcpServers": {
"congress": {
"url": "https://gateway.pipeworx.io/congress/mcp"
}
}
}
See Getting Started for client-specific install steps.