sam_entity_search

Pack: samgov · Endpoint: https://gateway.pipeworx.io/samgov/mcp

Look up federal contractors registered in SAM.gov by business name, UEI, or CAGE code. Returns UEI, CAGE, legal and DBA name, address, NAICS and PSC codes, entity structure, registration and expiration dates, small-business/SBA certifications, and whether the entity carries an exclusion flag. Answers keyless from a local mirror of SAM.gov’s public Entity Registration extract, ranking an exact UEI/CAGE/legal-name match above any fuzzy name hit and active registrations above expired ones. Every response carries a mirror field with the snapshot date and its age in days — the public entity extract is published MONTHLY, so an answer can legitimately be several weeks old; pass live:true with an API key when you need the registry as of today.

Parameters

NameTypeRequiredDescription
business_namestringyesWhat to search for: a legal/DBA business name, or an exact UEI or CAGE code. Accepts query / q / name as aliases.
naicsstringnoFilter by NAICS code (optional) — matches the primary NAICS or any NAICS the entity lists.
statestringnoFilter by 2-letter US state code (e.g., “VA”, “CA”)
small_businessbooleannoFilter to only small business entities (optional)
active_onlybooleannoOnly entities with an active registration (default false — expired registrations are returned but sorted below active ones).
limitnumbernoNumber of results (1-100, default 10).
offsetnumbernoRows to skip for paging (default 0).
livebooleannoForce a live SAM.gov API lookup instead of the mirror. Needs _apiKey. Use only when you specifically need registrations changed since the mirror snapshot — the live entity API is capped at 10 requests/day on the shared platform key.
_apiKeystringnoOptional — omit it. This search answers keyless from the local snapshot of SAM.gov’s public Entity Registration extract; a key is needed only for live:true.

Example call

Arguments

{
  "business_name": "Lockheed Martin Corporation",
  "limit": 2
}

curl

curl -X POST https://gateway.pipeworx.io/samgov/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sam_entity_search","arguments":{"business_name":"Lockheed Martin Corporation","limit":2}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('sam_entity_search', {
  "business_name": "Lockheed Martin Corporation",
  "limit": 2
});

More examples

{
  "business_name": "CH5WNENNFHX5"
}
{
  "business_name": "GreenTech",
  "naics": "541511",
  "small_business": true,
  "state": "VA"
}

Response shape

Always returns: total_records, entities

FieldTypeDescription
total_recordsnumberTotal number of matching entities in SAM
entitiesarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total_records": {
      "type": "number",
      "description": "Total number of matching entities in SAM"
    },
    "entities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "uei": {
            "type": [
              "string",
              "null"
            ],
            "description": "Unique Entity Identifier"
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "CAGE Code identifier"
          },
          "legal_business_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legal business name"
          },
          "dba_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Doing Business As name"
          },
          "registration_status": {
            "type": [
              "string",
              "null"
            ],
            "description": "SAM registration status"
          },
          "registration_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date of initial SAM registration"
          },
          "expiration_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "SAM registration expiration date"
          },
          "address": {
            "type": "object",
            "properties": {
              "line1": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Address line 1"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "City"
              },
              "state": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "State or province code"
              },
              "zip": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Zip/postal code"
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Country code"
              }
            },
            "description": "Physical business address"
          },
          "primary_naics": {
            "type": [
              "string",
              "null"
            ],
            "description": "Primary NAICS code"
          },
          "business_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of business type classifications"
          },
          "sba_certifications": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "SBA business type certifications held"
          },
          "entity_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Entity website URL"
          }
        }
      }
    }
  },
  "required": [
    "total_records",
    "entities"
  ]
}

Connect

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

{
  "mcpServers": {
    "samgov": {
      "url": "https://gateway.pipeworx.io/samgov/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 10, 2026