Skip to content

Commit 01e3b8a

Browse files
feat(mcp): add redactPII option (#253)
* Add redactPII to MCP scrape options * Update privacy instructions in README * Remove unreleased PII wording from MCP PR
1 parent af175f2 commit 01e3b8a

5 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [3.20.2] - 2026-06-01
4+
5+
### Added
6+
7+
- Added `redactPII` to scrape, parse, and nested scrape option schemas so MCP callers can request PII redaction with a single flag.
8+
39
## [3.20.1] - 2026-05-28
410

511
### Fixed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ Scrape content from a single URL with advanced options.
428428
```
429429

430430
**Branding format:** Extracts comprehensive brand identity (colors, fonts, typography, spacing, logo, UI components) for design analysis or style replication.
431+
**Privacy:** Set `redactPII: true` to return content with personally identifiable information redacted.
431432

432433
**Returns:**
433434

@@ -565,7 +566,8 @@ Search the web and optionally extract content from search results.
565566
"country": "us",
566567
"scrapeOptions": {
567568
"formats": ["markdown"],
568-
"onlyMainContent": true
569+
"onlyMainContent": true,
570+
"redactPII": true
569571
}
570572
}
571573
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firecrawl-mcp",
3-
"version": "3.20.1",
3+
"version": "3.20.2",
44
"description": "MCP server for Firecrawl — search, scrape, and interact with the web. Supports both cloud and self-hosted instances. Features include web search, scraping, page interaction, batch processing, and LLM-powered content analysis.",
55
"type": "module",
66
"mcpName": "io.github.firecrawl/firecrawl-mcp-server",

server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{
1313
"registryType": "npm",
1414
"identifier": "firecrawl-mcp",
15-
"version": "3.19.1",
15+
"version": "3.20.2",
1616
"transport": {
1717
"type": "stdio"
1818
},

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ const scrapeParamsSchema = z.object({
490490
})
491491
.optional(),
492492
onlyMainContent: z.boolean().optional(),
493+
redactPII: z.boolean().optional(),
493494
includeTags: z.array(z.string()).optional(),
494495
excludeTags: z.array(z.string()).optional(),
495496
waitFor: z.number().optional(),
@@ -638,6 +639,7 @@ If JSON extraction returns empty, minimal, or just navigation content, the page
638639
**Branding format:** Extracts comprehensive brand identity (colors, fonts, typography, spacing, logo, UI components) for design analysis or style replication.
639640
**Performance:** Add maxAge parameter for 500% faster scrapes using cached data.
640641
**Lockdown mode:** Set \`lockdown: true\` to serve the request only from the existing index/cache without any outbound network request. For air-gapped or compliance-constrained use where the request URL itself is considered sensitive. Errors on cache miss. Billed at 5 credits.
642+
**Privacy:** Set \`redactPII: true\` to return content with personally identifiable information redacted.
641643
**Returns:** JSON structured data, markdown, branding profile, or other formats as specified.
642644
${
643645
SAFE_MODE
@@ -1587,6 +1589,7 @@ if (process.env.CLOUD_SERVICE !== 'true') {
15871589
})
15881590
.optional(),
15891591
onlyMainContent: z.boolean().optional(),
1592+
redactPII: z.boolean().optional(),
15901593
includeTags: z.array(z.string()).optional(),
15911594
excludeTags: z.array(z.string()).optional(),
15921595
removeBase64Images: z.boolean().optional(),
@@ -1633,6 +1636,7 @@ This is the fastest and most reliable way to extract content from a document on
16331636
16341637
**Supported file types:** .html, .htm, .xhtml, .pdf, .docx, .doc, .odt, .rtf, .xlsx, .xls
16351638
**Unsupported options:** actions, screenshot/branding/changeTracking formats, waitFor > 0, location, mobile, proxy values other than "auto" or "basic".
1639+
**Privacy:** Set \`redactPII: true\` to return content with personally identifiable information redacted.
16361640
16371641
**CRITICAL - Format Selection (same rules as firecrawl_scrape):**
16381642
When the user asks for SPECIFIC data points from a document, you MUST use JSON format with a schema. Only use markdown when the user needs the ENTIRE document content.

0 commit comments

Comments
 (0)