Skip to main content
Glama
jflamb

FDIC BankFind MCP Server

by jflamb

fdic_search_sod

Search annual branch-level deposit data from FDIC-insured institutions using filters like year, location, or deposit amounts to analyze banking trends and branch performance.

Instructions

Search annual Summary of Deposits (SOD) data for individual bank branches.

The SOD report provides annual deposit data at the branch level, showing deposit balances for each office of every FDIC-insured institution as of June 30 each year.

Common filter examples:

  • All branches for a bank: CERT:3511

  • SOD for specific year: YEAR:2022

  • Branches in a state: STALPBR:CA

  • Branches in a city: CITYBR:"Austin"

  • High-deposit branches: DEPSUMBR:[1000000 TO *]

  • By metro area: MSANAMEBR:"Dallas-Fort Worth-Arlington"

Key returned fields:

  • YEAR: Report year (as of June 30)

  • CERT: FDIC Certificate Number

  • BRNUM: Branch number (0 = main office)

  • UNINAME: Institution name

  • NAMEFULL: Full branch name

  • ADDRESBR, CITYBR, STALPBR, ZIPBR: Branch address

  • CNTYBR: County

  • DEPSUMBR: Total deposits at branch ($thousands)

  • MSABR: Metropolitan Statistical Area code

  • MSANAMEBR: MSA name

  • LATITUDE, LONGITUDE: Coordinates

Args:

  • cert (number, optional): Filter by institution CERT number

  • year (number, optional): SOD report year (1994-present)

  • filters (string, optional): Additional ElasticSearch query filters

  • fields (string, optional): Comma-separated field names

  • limit (number): Records to return (default: 20)

  • offset (number): Pagination offset (default: 0)

  • sort_by (string, optional): Field to sort by (e.g., DEPSUMBR, YEAR)

  • sort_order ('ASC'|'DESC'): Sort direction (default: 'ASC')

Prefer concise human-readable summaries or tables when answering users. Structured fields are available for totals, pagination, and deposit records.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filtersNoFDIC API filter using ElasticSearch query string syntax. Combine conditions with AND/OR, use quotes for multi-word values, and [min TO max] for ranges (* = unbounded). Common fields: NAME (institution name), STNAME (state name), STALP (two-letter state code), CERT (certificate number), ASSET (total assets in $thousands), ACTIVE (1=active, 0=inactive). Examples: STNAME:"California", ACTIVE:1 AND ASSET:[1000000 TO *], NAME:"Chase"
fieldsNoComma-separated list of FDIC field names to return. Leave empty to return all fields. Field names are ALL_CAPS (e.g., NAME, CERT, ASSET, DEP, STALP). Example: NAME,CERT,ASSET,DEP,STALP
limitNoMaximum number of records to return (1-10000, default: 20)
offsetNoNumber of records to skip for pagination (default: 0)
sort_byNoField name to sort results by. Example: ASSET, NAME, FAILDATE
sort_orderNoSort direction: ASC (ascending) or DESC (descending)ASC
certNoFilter by FDIC Certificate Number
yearNoFilter by specific year (1994-present). SOD data is annual.

Implementation Reference

  • The handler function for the fdic_search_sod tool, which queries the SOD endpoint and processes the results.
      async ({ cert, year, ...params }) => {
        try {
          const response = await queryEndpoint(ENDPOINTS.SOD, {
            ...params,
            filters: buildFilterString({
              cert,
              dateField: "YEAR",
              dateValue: year,
              rawFilters: params.filters,
            }),
          });
          const records = extractRecords(response);
          const pagination = buildPaginationInfo(
            response.meta.total,
            params.offset ?? 0,
            records.length,
          );
          const output = { ...pagination, deposits: records };
          const text = truncateIfNeeded(
            formatSearchResultText("deposit records", records, pagination, [
              "CERT",
              "YEAR",
              "UNINAME",
              "NAMEFULL",
              "CITYBR",
              "DEPSUMBR",
            ]),
            CHARACTER_LIMIT,
            "Request fewer fields, narrow your filters, or paginate with limit/offset.",
          );
          return {
            content: [{ type: "text", text }],
            structuredContent: output,
          };
        } catch (err) {
          return formatToolError(err);
        }
      },
    );
  • The Zod schema defining the input parameters for the fdic_search_sod tool.
    const SodQuerySchema = CommonQuerySchema.extend({
      cert: z
        .number()
        .int()
        .positive()
        .optional()
        .describe("Filter by FDIC Certificate Number"),
      year: z
        .number()
        .int()
        .min(1994)
        .optional()
        .describe(
          "Filter by specific year (1994-present). SOD data is annual.",
        ),
    });
  • Registration of the fdic_search_sod tool within the McpServer.
    export function registerSodTools(server: McpServer): void {
      server.registerTool(
        "fdic_search_sod",
        {
          title: "Search Summary of Deposits (SOD)",
          description: `Search annual Summary of Deposits (SOD) data for individual bank branches.
    
    The SOD report provides annual deposit data at the branch level, showing deposit balances for each office of every FDIC-insured institution as of June 30 each year.
    
    Common filter examples:
      - All branches for a bank: CERT:3511
      - SOD for specific year: YEAR:2022
      - Branches in a state: STALPBR:CA
      - Branches in a city: CITYBR:"Austin"
      - High-deposit branches: DEPSUMBR:[1000000 TO *]
      - By metro area: MSANAMEBR:"Dallas-Fort Worth-Arlington"
    
    Key returned fields:
      - YEAR: Report year (as of June 30)
      - CERT: FDIC Certificate Number
      - BRNUM: Branch number (0 = main office)
      - UNINAME: Institution name
      - NAMEFULL: Full branch name
      - ADDRESBR, CITYBR, STALPBR, ZIPBR: Branch address
      - CNTYBR: County
      - DEPSUMBR: Total deposits at branch ($thousands)
      - MSABR: Metropolitan Statistical Area code
      - MSANAMEBR: MSA name
      - LATITUDE, LONGITUDE: Coordinates
    
    Args:
      - cert (number, optional): Filter by institution CERT number
      - year (number, optional): SOD report year (1994-present)
      - filters (string, optional): Additional ElasticSearch query filters
      - fields (string, optional): Comma-separated field names
      - limit (number): Records to return (default: 20)
      - offset (number): Pagination offset (default: 0)
      - sort_by (string, optional): Field to sort by (e.g., DEPSUMBR, YEAR)
      - sort_order ('ASC'|'DESC'): Sort direction (default: 'ASC')
    
    Prefer concise human-readable summaries or tables when answering users. Structured fields are available for totals, pagination, and deposit records.`,
          inputSchema: SodQuerySchema,
          annotations: {
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: true,
          },
        },
        async ({ cert, year, ...params }) => {
          try {
            const response = await queryEndpoint(ENDPOINTS.SOD, {
              ...params,
              filters: buildFilterString({
                cert,
                dateField: "YEAR",
                dateValue: year,
                rawFilters: params.filters,
              }),
            });
            const records = extractRecords(response);
            const pagination = buildPaginationInfo(
              response.meta.total,
              params.offset ?? 0,
              records.length,
            );
            const output = { ...pagination, deposits: records };
            const text = truncateIfNeeded(
              formatSearchResultText("deposit records", records, pagination, [
                "CERT",
                "YEAR",
                "UNINAME",
                "NAMEFULL",
                "CITYBR",
                "DEPSUMBR",
              ]),
              CHARACTER_LIMIT,
              "Request fewer fields, narrow your filters, or paginate with limit/offset.",
            );
            return {
              content: [{ type: "text", text }],
              structuredContent: output,
            };
          } catch (err) {
            return formatToolError(err);
          }
        },
      );
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jflamb/fdic-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server