Skip to main content
Glama
Sicks3c

HackerOne MCP Server

by Sicks3c

list_programs

Retrieve bug bounty programs accessible on HackerOne to identify eligible targets for security testing.

Instructions

List bug bounty programs you have access to on HackerOne.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_sizeNoNumber of programs to return (default 50)

Implementation Reference

  • The implementation of the `listPrograms` function which fetches data from the HackerOne API.
    export async function listPrograms(pageSize = 50) {
      const data = await h1Fetch("/hackers/programs", {
        "page[size]": String(pageSize),
      });
    
      return data.data.map((p: any) => ({
        id: p.id,
        handle: p.attributes.handle,
        name: p.attributes.name,
        offers_bounties: p.attributes.offers_bounties,
        state: p.attributes.state,
        started_accepting_at: p.attributes.started_accepting_at,
        submission_state: p.attributes.submission_state,
      }));
    }
  • src/index.ts:176-200 (registration)
    The MCP tool registration for `list_programs`, including input schema (using zod) and the handler logic that calls the `listPrograms` helper function.
    server.tool(
      "list_programs",
      "List bug bounty programs you have access to on HackerOne.",
      {
        page_size: z
          .number()
          .min(1)
          .max(100)
          .optional()
          .describe("Number of programs to return (default 50)"),
      },
      async ({ page_size }) => {
        try {
          const programs = await listPrograms(page_size);
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(programs, null, 2),
              },
            ],
          };
        } catch (err: any) {
          return {
            content: [{ type: "text" as const, text: `Error: ${err.message}` }],

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/Sicks3c/hackerone-mcp-server'

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