{"id":36767431,"url":"https://github.com/ghostsecurity/ghost-mcp-server","last_synced_at":"2026-01-12T13:02:00.981Z","repository":{"id":313115545,"uuid":"1050078339","full_name":"ghostsecurity/ghost-mcp-server","owner":"ghostsecurity","description":"Model Context Protocol (MCP) server for the Ghost Security API","archived":false,"fork":false,"pushed_at":"2025-12-05T13:51:44.000Z","size":112,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-09T00:15:32.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostsecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-03T23:17:53.000Z","updated_at":"2025-12-05T13:51:48.000Z","dependencies_parsed_at":"2025-09-04T02:34:08.919Z","dependency_job_id":"dab5f48c-5f4b-46aa-8aac-0884849cbef9","html_url":"https://github.com/ghostsecurity/ghost-mcp-server","commit_stats":null,"previous_names":["ghostsecurity/ghost-mcp-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghostsecurity/ghost-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostsecurity%2Fghost-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostsecurity%2Fghost-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostsecurity%2Fghost-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostsecurity%2Fghost-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostsecurity","download_url":"https://codeload.github.com/ghostsecurity/ghost-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostsecurity%2Fghost-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T13:01:59.996Z","updated_at":"2026-01-12T13:02:00.975Z","avatar_url":"https://github.com/ghostsecurity.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ghost Security MCP Server\n\nA Model Context Protocol (MCP) server for the Ghost Security API, providing secure access to security findings and repository data through standardized tools.\n\n## Features\n\n- **Security Findings Management**: Query, retrieve, and update security findings\n- **Repository Analysis**: Access repository data and associated findings\n- **Universal MCP Compatibility**: Works with any MCP-compatible client or application\n- **Bundled CLI Chatbot**: Includes a simple chatbot for quick interaction\n- **Comprehensive API Coverage**: Full support for Ghost Security API (V2) endpoints\n- **Type Safety**: Complete TypeScript implementation with proper typing\n- **Error Handling**: Robust error handling and validation\n\n## Installation\n\n### Quick Install for Claude Code CLI\n\n**Option 1: Interactive Installer (Easiest)**\n\n```bash\n# Clone and build\ngit clone https://github.com/ghostsecurity/ghost-mcp-server\ncd ghost-mcp-server\nnpm install \u0026\u0026 npm run build\n\n# Run interactive installer (prompts for API key)\nnpm run install:interactive\n```\n\n**Option 2: Automated Setup Script**\n\n```bash\n# Clone and build\ngit clone https://github.com/ghostsecurity/ghost-mcp-server\ncd ghost-mcp-server\nnpm install \u0026\u0026 npm run build\n\n# Run setup script with your API key\n./setup-claude-code.sh YOUR_API_KEY\n\n# Optional: Scope to a specific repository\n./setup-claude-code.sh YOUR_API_KEY YOUR_REPO_ID\n```\n\n**Option 3: Manual Setup**\n\n```bash\n# Clone and build\ngit clone https://github.com/ghostsecurity/ghost-mcp-server\ncd ghost-mcp-server\nnpm install \u0026\u0026 npm run build\n\n# Add to Claude Code\nclaude mcp add --transport stdio --scope user ghost-security -- node $(pwd)/dist/index.js\n\n# Then edit ~/.claude.json and add under mcpServers.ghost-security.env:\n# {\n#   \"GHOST_SECURITY_API_KEY\": \"your-api-key\",\n#   \"GHOST_SECURITY_BASE_URL\": \"https://api.ghostsecurity.ai/v2\"\n# }\n```\n\n**Option 4: From npm (Coming Soon)**\n\nOnce published to npm, installation will be even simpler:\n\n```bash\nclaude mcp add --transport stdio --scope user ghost-security -- npx ghostsecurity-mcp\n```\n\nThen add your API key to `~/.claude.json`:\n```json\n{\n  \"mcpServers\": {\n    \"ghost-security\": {\n      \"env\": {\n        \"GHOST_SECURITY_API_KEY\": \"your-api-key-here\",\n        \"GHOST_SECURITY_BASE_URL\": \"https://api.ghostsecurity.ai/v2\"\n      }\n    }\n  }\n}\n```\n\n### Standard Installation (All MCP Clients)\n\n1. Clone this repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd ghost-mcp-server\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Build the project:\n```bash\nnpm run build\n```\n\n## Usage\n\n### Configuration\n\nThe server requires a Ghost Security API key to be provided at startup. You can provide it in two ways:\n\n#### Option 1: Environment Variable (Recommended)\n```bash\nexport GHOST_SECURITY_API_KEY=\"your-ghost-security-api-key\"\nexport GHOST_SECURITY_BASE_URL=\"https://api.ghostsecurity.ai/v2\"  # optional, defaults to v2\nexport GHOST_SECURITY_REPO_ID=\"your-repository-id\"  # optional - scope to specific repo\n```\n\n#### Option 2: Command Line Argument\n```bash\nnode dist/index.js \"your-ghost-security-api-key\" \"your-repository-id\"\n```\nNote: Repository ID is optional. If provided, all operations will be scoped to that repository.\n\n### Running the Server\n\nFor development:\n```bash\n# Set environment variable first\nexport GHOST_SECURITY_API_KEY=\"your-api-key\"\nnpm run dev\n```\n\nFor production:\n```bash\n# Either with environment variable\nexport GHOST_SECURITY_API_KEY=\"your-api-key\"\nnpm start\n\n# Or with command line argument\nnpm run build\nnode dist/index.js \"your-api-key\"\n```\n\n### CLI Chatbot\n\nThis project includes a simple CLI chatbot powered by Anthropic's Claude API that can interact with the MCP server.\n\n```bash\nexport ANTHROPIC_API_KEY=\"your-anthropic-api-key\"\nexport GHOST_SECURITY_API_KEY=\"your-ghost-api-key\"\nnpm run chat\n```\n\n### Adding to Any MCP Client\n\nThis server follows the standard MCP configuration format. Here are examples for different clients:\n\n#### Standard MCP Configuration (Claude Desktop, ChatGPT, etc.)\n\n```json\n{\n  \"mcpServers\": {\n    \"ghostsecurity\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/ghost-mcp-server/dist/index.js\"],\n      \"env\": {\n        \"GHOST_SECURITY_API_KEY\": \"your-ghost-security-api-key\",\n        \"GHOST_SECURITY_REPO_ID\": \"your-repository-id\"\n      }\n    }\n  }\n}\n```\n\n#### Environment Variable Setup (Universal)\nFor any MCP client that supports environment variables:\n```bash\nexport GHOST_SECURITY_API_KEY=\"your-ghost-security-api-key\"\nexport GHOST_SECURITY_BASE_URL=\"https://api.ghostsecurity.ai/v2\"\nexport GHOST_SECURITY_REPO_ID=\"your-repository-id\"\n```\n\n### Repository Scoping\n\nWhen a repository ID is configured via `GHOST_SECURITY_REPO_ID` environment variable or CLI argument:\n\n- `ghostsecurity_get_findings` returns findings only for that repository\n- `ghostsecurity_get_repositories` returns only the configured repository\n- `ghostsecurity_get_repository_findings` uses the configured repository as default (repoId parameter becomes optional)\n\n## Available Tools\n\n### Security Findings\n\n#### `ghostsecurity_get_findings`\nGet security findings with optional filtering and pagination.\n\n**Parameters:**\n- `cursor` (string, optional): Pagination cursor\n- `sort` (string, optional): Sort field (`created_at`, `updated_at`)\n- `order` (string, optional): Sort order (`asc`, `desc`)\n- `size` (number, optional): Page size (1-1000)\n- `status` (string, optional): Filter by status\n- `repo_id` (string, optional): Filter by repository ID\n- `project_id` (string, optional): Filter by project ID\n\n#### `ghostsecurity_get_finding`\nGet a specific security finding by ID.\n\n**Parameters:**\n- `id` (string, required): Finding ID\n- `repoId` (string, required): Repository ID associated with the finding\n- `projectId` (string, required): Project ID associated with the finding\n\n#### `ghostsecurity_update_finding_status`\nUpdate the status of a security finding.\n\n**Parameters:**\n- `id` (string, required): Finding ID\n- `repoId` (string, required): Repository ID associated with the finding\n- `projectId` (string, required): Project ID associated with the finding\n- `status` (string, required): New status for the finding\n\n### Repositories\n\n#### `ghostsecurity_get_repositories`\nGet repositories with optional filtering and pagination.\n\n**Parameters:**\n- `cursor` (string, optional): Pagination cursor\n- `sort` (string, optional): Sort field (`created_at`, `updated_at`, `last_committed_at`)\n- `order` (string, optional): Sort order (`asc`, `desc`)\n- `size` (number, optional): Page size (1-1000)\n\n#### `ghostsecurity_get_repository`\nGet a specific repository by ID.\n\n**Parameters:**\n- `id` (string, required): Repository ID\n\n#### `ghostsecurity_get_repository_findings`\nGet security findings for a specific repository.\n\n**Parameters:**\n- `repoId` (string, optional*): Repository ID (*required unless `GHOST_SECURITY_REPO_ID` is configured)\n- `cursor` (string, optional): Pagination cursor\n- `sort` (string, optional): Sort field (`created_at`, `updated_at`)\n- `order` (string, optional): Sort order (`asc`, `desc`)\n- `size` (number, optional): Page size (1-1000)\n\n## Publishing to MCP Registry\n\nThis server is configured for publishing to the [MCP Registry](https://modelcontextprotocol.info/tools/registry/).\n\n1.  **Install Publisher CLI**:\n    ```bash\n    brew install mcp-publisher\n    ```\n\n2.  **Login**:\n    ```bash\n    mcp-publisher login github\n    ```\n\n3.  **Publish**:\n    ```bash\n    mcp-publisher publish\n    ```\n\nThe `server.json` file contains the necessary metadata. Ensure you have published the package to NPM before publishing to the registry.\n\n## Development\n\n### Scripts\n\n- `npm run dev`: Run in development mode with hot reload\n- `npm run build`: Build TypeScript to JavaScript\n- `npm start`: Run the built server\n- `npm run chat`: Run the CLI chatbot\n\n### Project Structure\n\n```\nsrc/\n├── index.ts          # Main MCP server implementation\n├── ghost-client.ts   # Ghost Security API client (V2)\n├── types.ts          # TypeScript type definitions\n└── chatbot.ts        # CLI Chatbot implementation\n```\n\n## API Reference\n\nThis MCP server provides a complete interface to the Ghost Security API V2. For detailed API documentation, visit:\nhttps://docs.ghostsecurity.ai/api-reference/introduction\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostsecurity%2Fghost-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostsecurity%2Fghost-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostsecurity%2Fghost-mcp-server/lists"}