API Tools
firmsapi.com
Provides tools to look up, search, validate, and list CBP FIRMS facility codes and ports for customs and trade compliance.
ENDPOINT 1
https://api.firmsapi.com/mcp
MCP server metadata
- Name
- firmsapi
- Version
- 1.0.0
FIRMSapi answers questions about U.S. CBP FIRMS codes (4-character codes for piers, container freight stations, bonded warehouses, foreign trade zones and exam sites) from the published CBP list, dated by meta.data_as_of. Each tool call is one API call on the key's monthly plan; invalid arguments, auth errors, quota_exceeded and server errors are not counted. Test keys (fapi_test_...) return a small fixture sample, are never counted and must not be used for filing. FIRMSapi has no connection to ACE: a passing validation is not ACE acceptance, so tell the user to confirm the code, bond status and port eligibility in ACE. Webhooks and change notifications are not available. About a third of codes are not a letter plus three digits: never reject a code for its shape.
Known tools 6
lookup_firms_codeGet one FIRMS code's record: facility name, status, type, address, CBP port, location and the other codes at the same address.
Inferred read-onlyfind_nearby_firms_facilitiesList FIRMS facilities within radius_km of one origin, nearest first.
Inferred read-onlyvalidate_firms_codeCheck a FIRMS code against the published CBP list before filing, in order: format, exists (ACE reject 158), active (159), in the stated port (164), type fits the use, not a placeholder.
Inferred read-onlylist_cbp_portsList every CBP port that has FIRMS codes, with name, state, region, facility_count and active_count, in one call.
Inferred read-onlyget_cbp_portGet one CBP port and a page of its FIRMS facilities, ordered by code, without placeholders; active codes only unless include_deleted is true.
Inferred read-onlyCONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.firmsapi]
url = "https://api.firmsapi.com/mcp"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"firmsapi": {
"type": "http",
"url": "https://api.firmsapi.com/mcp"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: firmsapi
Remote MCP URL: https://api.firmsapi.com/mcp
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"firmsapi": {
"url": "https://api.firmsapi.com/mcp"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"firmsapi": {
"type": "http",
"url": "https://api.firmsapi.com/mcp"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "firmsapi",
"transport": "streamable-http",
"url": "https://api.firmsapi.com/mcp"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
TRUST AND VERIFICATION EVIDENCE
Loading Trust v2 evidence…
Checking the associated registrable domain. The BuiltWith key remains server-side.
Evidence is source-attributed and does not guarantee that a third-party server is safe. Risk labels are conservative metadata heuristics.