@breachsense/mcp 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Breachsense
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,254 @@
1
- # Temporary Holding Version
1
+ # Breachsense MCP server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Search [Breachsense](https://breachsense.com) breach data from any AI tool that supports the Model Context Protocol (MCP): stealer logs, combo lists, breach credentials, phishing captures, session cookies, leaked secrets, ransomware leaks, forum mentions, leaked documents and your attack surface.
4
+
5
+ Every tool runs the same server:
6
+
7
+ ```
8
+ npx -y @breachsense/mcp@1
9
+ ```
10
+
11
+ It needs Node.js 20 or newer and your Breachsense license key.
12
+
13
+ **Pin the version.** The configs below use `@breachsense/mcp@1`, so you get fixes but never a new major version without choosing it. Unpinned `npx -y @breachsense/mcp` fetches whatever is newest on every cold start. For locked-down environments, pin an exact release (for example `@breachsense/mcp@1.0.0`) and update deliberately. Every release is published from GitHub Actions with npm provenance. Each release also ships a CycloneDX SBOM (`dist/sbom.cdx.json` in the package, `sbom.cdx.json` on the GitHub release) listing every library bundled into the server, because the package itself has no npm dependencies for your SCA tools to see.
14
+
15
+ ## 1. Add your license key
16
+
17
+ Pick one:
18
+
19
+ - **License file (recommended).** Every tool finds it, and the key stays out of your AI tool's config files:
20
+
21
+ ```bash
22
+ mkdir -p ~/.config/breachsense
23
+ echo 'your-license-key' > ~/.config/breachsense/license.md
24
+ chmod 600 ~/.config/breachsense/license.md
25
+ ```
26
+
27
+ With the file in place, you can leave out the `env` / `BREACHSENSE_API_KEY` lines in the configs below.
28
+
29
+ - **Environment variable.** Set `BREACHSENSE_API_KEY` in the server's `env` block, as the examples below show.
30
+
31
+ The server takes the first key it finds, in this order:
32
+
33
+ 1. the `BREACHSENSE_API_KEY` environment variable
34
+ 2. `~/.config/breachsense/license.md`
35
+ 3. `~/.claude/breachsense/license.md` (older location, still supported)
36
+
37
+ Both files are in your home folder, never inside a project, so they can't end up in a repository. On startup, the server logs which source it used to stderr, without the key (for example `license key from /Users/you/.config/breachsense/license.md`). Your AI tool's MCP log shows this line. If no key is found, the server still starts. Each tool then explains how to add one, and no query is sent.
38
+
39
+ ## 2. Connect your AI tool
40
+
41
+ ### Claude Code
42
+
43
+ Install the plugin. It bundles this server together with the Breachsense skill:
44
+
45
+ ```
46
+ /plugin marketplace add https://github.com/breachsense/breachsense-plugins
47
+ /plugin install breachsense@breachsense
48
+ ```
49
+
50
+ Or add only the server: `claude mcp add breachsense -s user -- npx -y @breachsense/mcp@1`
51
+
52
+ ### Claude Desktop
53
+
54
+ Download `breachsense.mcpb` from the [latest release](https://github.com/breachsense/breachsense-plugins/releases), open it, and enter your key when asked. Desktop stores the key in your system keychain.
55
+
56
+ You can also add the server by hand. Open Settings, then Developer, then Edit Config (`claude_desktop_config.json`):
57
+
58
+ ```json
59
+ {
60
+ "mcpServers": {
61
+ "breachsense": {
62
+ "command": "npx",
63
+ "args": ["-y", "@breachsense/mcp@1"],
64
+ "env": { "BREACHSENSE_API_KEY": "your-license-key" }
65
+ }
66
+ }
67
+ }
68
+ ```
69
+
70
+ ### Cursor
71
+
72
+ Use `~/.cursor/mcp.json` for all projects, or `.cursor/mcp.json` in one project:
73
+
74
+ ```json
75
+ {
76
+ "mcpServers": {
77
+ "breachsense": {
78
+ "command": "npx",
79
+ "args": ["-y", "@breachsense/mcp@1"],
80
+ "env": { "BREACHSENSE_API_KEY": "your-license-key" }
81
+ }
82
+ }
83
+ }
84
+ ```
85
+
86
+ ### VS Code (GitHub Copilot agent mode)
87
+
88
+ Add this to `.vscode/mcp.json`, or run **MCP: Open User Configuration** to make it available everywhere. VS Code asks for the key once and stores it securely:
89
+
90
+ ```json
91
+ {
92
+ "inputs": [
93
+ { "type": "promptString", "id": "breachsense-key", "description": "Breachsense license key", "password": true }
94
+ ],
95
+ "servers": {
96
+ "breachsense": {
97
+ "type": "stdio",
98
+ "command": "npx",
99
+ "args": ["-y", "@breachsense/mcp@1"],
100
+ "env": { "BREACHSENSE_API_KEY": "${input:breachsense-key}" }
101
+ }
102
+ }
103
+ }
104
+ ```
105
+
106
+ ### Windsurf
107
+
108
+ Add this to `~/.codeium/windsurf/mcp_config.json`:
109
+
110
+ ```json
111
+ {
112
+ "mcpServers": {
113
+ "breachsense": {
114
+ "command": "npx",
115
+ "args": ["-y", "@breachsense/mcp@1"],
116
+ "env": { "BREACHSENSE_API_KEY": "your-license-key" }
117
+ }
118
+ }
119
+ }
120
+ ```
121
+
122
+ ### OpenAI Codex CLI
123
+
124
+ Add this to `~/.codex/config.toml`. `env_vars` passes your shell's `BREACHSENSE_API_KEY` through, so the key never goes in the file:
125
+
126
+ ```toml
127
+ [mcp_servers.breachsense]
128
+ command = "npx"
129
+ args = ["-y", "@breachsense/mcp@1"]
130
+ env_vars = ["BREACHSENSE_API_KEY"]
131
+ ```
132
+
133
+ ### Gemini CLI
134
+
135
+ Add this to `~/.gemini/settings.json`. `$BREACHSENSE_API_KEY` is read from your shell:
136
+
137
+ ```json
138
+ {
139
+ "mcpServers": {
140
+ "breachsense": {
141
+ "command": "npx",
142
+ "args": ["-y", "@breachsense/mcp@1"],
143
+ "env": { "BREACHSENSE_API_KEY": "$BREACHSENSE_API_KEY" }
144
+ }
145
+ }
146
+ }
147
+ ```
148
+
149
+ ### Cline
150
+
151
+ Open the MCP Servers panel, then Configure, and add this to `cline_mcp_settings.json`:
152
+
153
+ ```json
154
+ {
155
+ "mcpServers": {
156
+ "breachsense": {
157
+ "command": "npx",
158
+ "args": ["-y", "@breachsense/mcp@1"],
159
+ "env": { "BREACHSENSE_API_KEY": "your-license-key" }
160
+ }
161
+ }
162
+ }
163
+ ```
164
+
165
+ ### Zed
166
+
167
+ Add this to your Zed `settings.json` (the **zed: open settings file** command opens it):
168
+
169
+ ```json
170
+ {
171
+ "context_servers": {
172
+ "breachsense": {
173
+ "command": "npx",
174
+ "args": ["-y", "@breachsense/mcp@1"],
175
+ "env": { "BREACHSENSE_API_KEY": "your-license-key" }
176
+ }
177
+ }
178
+ }
179
+ ```
180
+
181
+ ### Any other MCP client
182
+
183
+ Start it as a stdio server with command `npx` and args `["-y", "@breachsense/mcp@1"]`, and set `BREACHSENSE_API_KEY`. To skip the npx download on every start, install it globally (`npm i -g @breachsense/mcp@1`) and use the command `breachsense-mcp`.
184
+
185
+ ### Agent frameworks
186
+
187
+ OpenAI Agents SDK (Python):
188
+
189
+ ```python
190
+ from agents import Agent, Runner
191
+ from agents.mcp import MCPServerStdio
192
+
193
+ async with MCPServerStdio(params={"command": "npx", "args": ["-y", "@breachsense/mcp@1"]}) as breachsense:
194
+ agent = Agent(name="Analyst", instructions="Investigate exposure.", mcp_servers=[breachsense])
195
+ result = await Runner.run(agent, "Count stealer log hits for acme.com")
196
+ ```
197
+
198
+ Claude Agent SDK (Python):
199
+
200
+ ```python
201
+ from claude_agent_sdk import ClaudeAgentOptions, query
202
+
203
+ options = ClaudeAgentOptions(
204
+ mcp_servers={"breachsense": {"command": "npx", "args": ["-y", "@breachsense/mcp@1"]}},
205
+ allowed_tools=["mcp__breachsense__*"],
206
+ )
207
+ async for message in query(prompt="Count stealer log hits for acme.com", options=options):
208
+ print(message)
209
+ ```
210
+
211
+ MCP TypeScript SDK:
212
+
213
+ ```ts
214
+ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
215
+ import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
216
+
217
+ const client = new Client({ name: "my-agent", version: "1.0.0" });
218
+ await client.connect(new StdioClientTransport({ command: "npx", args: ["-y", "@breachsense/mcp@1"] }));
219
+ const result = await client.callTool({ name: "search_stealer_logs", arguments: { query: "acme.com", count_only: true } });
220
+ ```
221
+
222
+ These examples read the key from the license file. To use the environment variable instead, pass `env` with `BREACHSENSE_API_KEY` (and `PATH`, because some SDKs replace the whole environment).
223
+
224
+ ### ChatGPT and claude.ai
225
+
226
+ These connect only to hosted MCP servers. A hosted Breachsense endpoint is planned. Until it ships, use one of the tools above.
227
+
228
+ ## Tools
229
+
230
+ | Tool | What it does | Cost |
231
+ |---|---|---|
232
+ | `search_stealer_logs` | Infostealer credentials | 1 query per page |
233
+ | `search_combo_lists` | Combo lists from hacking forums | 1 query per page |
234
+ | `search_breach_credentials` | Third-party breach and database dump credentials | 1 query per page |
235
+ | `search_phishing_captures` | Credentials captured by phishing kits | 1 query per page |
236
+ | `search_session_cookies` | Session cookies and auth tokens | 1 query per page |
237
+ | `search_leaked_secrets` | API keys, OAuth tokens, service credentials | 1 query per page |
238
+ | `search_ransomware_leaks` | Ransomware leak site mentions | 1 query per page |
239
+ | `search_forum_mentions` | Hacker forums and underground markets | 1 query per page |
240
+ | `search_documents` | Full-text search across leaked documents | 1 query per page |
241
+ | `download_document` | Fetch one leaked document | 1 query |
242
+ | `get_attack_surface` | Subdomains, mail servers, lookalike and phishing domains for a watched domain | 1 query per page |
243
+ | `check_credential_exposure` | One domain across stealer logs, combo lists, breaches and phishing captures | 4 queries |
244
+ | `get_usage` | Queries used and remaining | free |
245
+ | `get_monitoring_setup` | Watchlist, alert recipients, webhooks | free |
246
+ | `manage_watchlist`, `manage_alert_recipients`, `manage_whitelist`, `send_test_alert` | Change monitoring settings (your tool asks before running them) | free |
247
+
248
+ Searches with `count_only` are free, and so are searches for `example.com` and `test.com`, so you can test your setup at no cost.
249
+
250
+ ## Support
251
+
252
+ - Issues: https://github.com/breachsense/breachsense-plugins/issues
253
+ - Email: support@breachsense.com
254
+ - License key: [breachsense.com](https://breachsense.com)
@@ -0,0 +1,193 @@
1
+ {
2
+ "bomFormat": "CycloneDX",
3
+ "specVersion": "1.5",
4
+ "serialNumber": "urn:uuid:3ff1e418-ec48-4f2b-97b7-2bcdcc6fdff3",
5
+ "version": 1,
6
+ "metadata": {
7
+ "timestamp": "2026-11-26T10:35:50.151Z",
8
+ "tools": {
9
+ "components": [
10
+ {
11
+ "type": "application",
12
+ "name": "esbuild",
13
+ "version": "0.28.2"
14
+ }
15
+ ]
16
+ },
17
+ "component": {
18
+ "type": "application",
19
+ "bom-ref": "pkg:npm/%40breachsense/mcp@1.0.0",
20
+ "group": "@breachsense",
21
+ "name": "mcp",
22
+ "version": "1.0.0",
23
+ "purl": "pkg:npm/%40breachsense/mcp@1.0.0",
24
+ "licenses": [
25
+ {
26
+ "expression": "MIT"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ "components": [
32
+ {
33
+ "type": "library",
34
+ "bom-ref": "pkg:npm/%40modelcontextprotocol/sdk@1.32.2",
35
+ "name": "sdk",
36
+ "version": "1.32.2",
37
+ "purl": "pkg:npm/%40modelcontextprotocol/sdk@1.32.2",
38
+ "group": "@modelcontextprotocol",
39
+ "licenses": [
40
+ {
41
+ "expression": "MIT"
42
+ }
43
+ ],
44
+ "hashes": [
45
+ {
46
+ "alg": "SHA-512",
47
+ "content": "496b15b47ff4bd42d2412b6867ac711f62b4f4b8bc7d7613302eb865ea2009da59dd74a2d5e08f381c95d4ea6e271b88dce7261e1a2c0d66328a2d3bb693ec2f"
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ "type": "library",
53
+ "bom-ref": "pkg:npm/ajv@8.20.0",
54
+ "name": "ajv",
55
+ "version": "8.20.0",
56
+ "purl": "pkg:npm/ajv@8.20.0",
57
+ "licenses": [
58
+ {
59
+ "expression": "MIT"
60
+ }
61
+ ],
62
+ "hashes": [
63
+ {
64
+ "alg": "SHA-512",
65
+ "content": "4e16e58be3a53a3fa230f60505505f2773a60809da4b2367e0cd6fcfd4fa1a46b926df5b6bf1c8479ea3a32eb9b58ea4c7f142179557341f35f58eff194ac118"
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "type": "library",
71
+ "bom-ref": "pkg:npm/ajv-formats@3.0.1",
72
+ "name": "ajv-formats",
73
+ "version": "3.0.1",
74
+ "purl": "pkg:npm/ajv-formats@3.0.1",
75
+ "licenses": [
76
+ {
77
+ "expression": "MIT"
78
+ }
79
+ ],
80
+ "hashes": [
81
+ {
82
+ "alg": "SHA-512",
83
+ "content": "f2252a979d04511fae51c7514371c3a9ae84572a3776870bf20e5627714d7169aeeb621b90652e7bfa44c8b056f1518a2ae7133e0a9e92ce1f214d43038ca8c1"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "type": "library",
89
+ "bom-ref": "pkg:npm/fast-deep-equal@3.1.3",
90
+ "name": "fast-deep-equal",
91
+ "version": "3.1.3",
92
+ "purl": "pkg:npm/fast-deep-equal@3.1.3",
93
+ "licenses": [
94
+ {
95
+ "expression": "MIT"
96
+ }
97
+ ],
98
+ "hashes": [
99
+ {
100
+ "alg": "SHA-512",
101
+ "content": "7f7a90f68432f63d808417bf1fd542f75c0b98a042094fe00ce9ca340606e61b303bb04b2a3d3d1dce4760dcfd70623efb19690c22200da8ad56cd3701347ce1"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "type": "library",
107
+ "bom-ref": "pkg:npm/fast-uri@3.1.9",
108
+ "name": "fast-uri",
109
+ "version": "3.1.9",
110
+ "purl": "pkg:npm/fast-uri@3.1.9",
111
+ "licenses": [
112
+ {
113
+ "expression": "BSD-3-Clause"
114
+ }
115
+ ],
116
+ "hashes": [
117
+ {
118
+ "alg": "SHA-512",
119
+ "content": "852ff45addd86b4e37a0a5ecd2c231acca4a4084d784c2c8ad500a2978b8828cc60bdbfb6115959d7219ce334f4ced3633d05dc4b096a8ad7245780dce257225"
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "type": "library",
125
+ "bom-ref": "pkg:npm/json-schema-traverse@1.0.0",
126
+ "name": "json-schema-traverse",
127
+ "version": "1.0.0",
128
+ "purl": "pkg:npm/json-schema-traverse@1.0.0",
129
+ "licenses": [
130
+ {
131
+ "expression": "MIT"
132
+ }
133
+ ],
134
+ "hashes": [
135
+ {
136
+ "alg": "SHA-512",
137
+ "content": "34cf3f3fd9f75e35e12199f594b86415a0024ce5114178d6855e0103f4673aff31be0aadaa9017f483b89914314b1d51968e2dab37aa6f4b0e96bb9a3b2dddba"
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "type": "library",
143
+ "bom-ref": "pkg:npm/zod@4.6.7",
144
+ "name": "zod",
145
+ "version": "4.6.7",
146
+ "purl": "pkg:npm/zod@4.6.7",
147
+ "licenses": [
148
+ {
149
+ "expression": "MIT"
150
+ }
151
+ ],
152
+ "hashes": [
153
+ {
154
+ "alg": "SHA-512",
155
+ "content": "83c5b60f6914e9af2e9ed734e777d7d6e5412b333bcaa0315bfdf3c24f37fba472176f9228eb95f9cd30043854c335753da19aa66647fab99c5333dffb7086c2"
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "type": "library",
161
+ "bom-ref": "pkg:npm/zod-to-json-schema@3.25.2",
162
+ "name": "zod-to-json-schema",
163
+ "version": "3.25.2",
164
+ "purl": "pkg:npm/zod-to-json-schema@3.25.2",
165
+ "licenses": [
166
+ {
167
+ "expression": "ISC"
168
+ }
169
+ ],
170
+ "hashes": [
171
+ {
172
+ "alg": "SHA-512",
173
+ "content": "3bf3e07e7a53d712920de4184827d12391b2de13dff7598a543b982d41d924c883169b6f3f8d4c4a75a87e6f1d9c29b4db9e9935f64833b0d2cee48c0059e31c"
174
+ }
175
+ ]
176
+ }
177
+ ],
178
+ "dependencies": [
179
+ {
180
+ "ref": "pkg:npm/%40breachsense/mcp@1.0.0",
181
+ "dependsOn": [
182
+ "pkg:npm/%40modelcontextprotocol/sdk@1.32.2",
183
+ "pkg:npm/ajv@8.20.0",
184
+ "pkg:npm/ajv-formats@3.0.1",
185
+ "pkg:npm/fast-deep-equal@3.1.3",
186
+ "pkg:npm/fast-uri@3.1.9",
187
+ "pkg:npm/json-schema-traverse@1.0.0",
188
+ "pkg:npm/zod@4.6.7",
189
+ "pkg:npm/zod-to-json-schema@3.25.2"
190
+ ]
191
+ }
192
+ ]
193
+ }