firecrawl-mcp 1.3.0 → 1.3.2
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/README.md
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
A Model Context Protocol (MCP) server implementation that integrates with FireCrawl for advanced web scraping capabilities.
|
|
6
6
|
|
|
7
|
-
<a href="https://glama.ai/mcp/servers/57mideuljt"><img width="380" height="200" src="https://glama.ai/mcp/servers/57mideuljt/badge" alt="mcp-server-firecrawl MCP server" /></a>
|
|
8
|
-
|
|
9
7
|
## Features
|
|
10
8
|
|
|
11
9
|
- Web scraping with JavaScript rendering
|
|
@@ -21,18 +19,18 @@ A Model Context Protocol (MCP) server implementation that integrates with FireCr
|
|
|
21
19
|
|
|
22
20
|
## Installation
|
|
23
21
|
|
|
24
|
-
###
|
|
25
|
-
|
|
26
|
-
To install FireCrawl for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@mendableai/mcp-server-firecrawl):
|
|
22
|
+
### Manual Installation
|
|
27
23
|
|
|
28
24
|
```bash
|
|
29
|
-
|
|
25
|
+
npm install -g firecrawl-mcp
|
|
30
26
|
```
|
|
31
27
|
|
|
32
|
-
###
|
|
28
|
+
### Installing via Smithery
|
|
29
|
+
|
|
30
|
+
To install FireCrawl for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@mendableai/mcp-server-firecrawl):
|
|
33
31
|
|
|
34
32
|
```bash
|
|
35
|
-
|
|
33
|
+
npx -y @smithery/cli install @mendableai/mcp-server-firecrawl --client claude
|
|
36
34
|
```
|
|
37
35
|
|
|
38
36
|
## Configuration
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firecrawl-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "MCP server for FireCrawl web scraping integration. Supports both cloud and self-hosted instances. Features include web scraping, batch processing, structured data extraction, and LLM-powered content analysis.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"bin":
|
|
6
|
+
"bin": {
|
|
7
|
+
"firecrawl-mcp": "dist/index.js"
|
|
8
|
+
},
|
|
7
9
|
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
"README.md",
|
|
10
|
-
"LICENSE"
|
|
10
|
+
"dist"
|
|
11
11
|
],
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "tsc",
|
|
16
|
+
"build": "tsc && shx chmod +x dist/*.js",
|
|
17
17
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
18
|
-
"start": "node dist/
|
|
18
|
+
"start": "node dist/index.js",
|
|
19
19
|
"lint": "eslint src/**/*.ts",
|
|
20
20
|
"lint:fix": "eslint src/**/*.ts --fix",
|
|
21
21
|
"format": "prettier --write .",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"@mendable/firecrawl-js": "^1.16.0",
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.4.1",
|
|
29
29
|
"dotenv": "^16.4.7",
|
|
30
|
-
"p-queue": "^8.0.1"
|
|
30
|
+
"p-queue": "^8.0.1",
|
|
31
|
+
"shx": "^0.3.4"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@jest/globals": "^29.7.0",
|
package/dist/jest.setup.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jest } from '@jest/globals';
|
|
2
|
-
// Set test timeout
|
|
3
|
-
jest.setTimeout(30000);
|
|
4
|
-
// Create mock responses
|
|
5
|
-
const mockSearchResponse = {
|
|
6
|
-
success: true,
|
|
7
|
-
data: [
|
|
8
|
-
{
|
|
9
|
-
url: 'https://example.com',
|
|
10
|
-
title: 'Test Page',
|
|
11
|
-
description: 'Test Description',
|
|
12
|
-
markdown: '# Test Content',
|
|
13
|
-
actions: null,
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
};
|
|
17
|
-
const mockBatchScrapeResponse = {
|
|
18
|
-
success: true,
|
|
19
|
-
id: 'test-batch-id',
|
|
20
|
-
};
|
|
21
|
-
const mockBatchStatusResponse = {
|
|
22
|
-
success: true,
|
|
23
|
-
status: 'completed',
|
|
24
|
-
completed: 1,
|
|
25
|
-
total: 1,
|
|
26
|
-
creditsUsed: 1,
|
|
27
|
-
expiresAt: new Date(),
|
|
28
|
-
data: [
|
|
29
|
-
{
|
|
30
|
-
url: 'https://example.com',
|
|
31
|
-
title: 'Test Page',
|
|
32
|
-
description: 'Test Description',
|
|
33
|
-
markdown: '# Test Content',
|
|
34
|
-
actions: null,
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
};
|
|
38
|
-
// Create mock instance methods
|
|
39
|
-
const mockSearch = jest.fn().mockImplementation(async () => mockSearchResponse);
|
|
40
|
-
const mockAsyncBatchScrapeUrls = jest
|
|
41
|
-
.fn()
|
|
42
|
-
.mockImplementation(async () => mockBatchScrapeResponse);
|
|
43
|
-
const mockCheckBatchScrapeStatus = jest
|
|
44
|
-
.fn()
|
|
45
|
-
.mockImplementation(async () => mockBatchStatusResponse);
|
|
46
|
-
// Create mock instance
|
|
47
|
-
const mockInstance = {
|
|
48
|
-
apiKey: 'test-api-key',
|
|
49
|
-
apiUrl: 'test-api-url',
|
|
50
|
-
search: mockSearch,
|
|
51
|
-
asyncBatchScrapeUrls: mockAsyncBatchScrapeUrls,
|
|
52
|
-
checkBatchScrapeStatus: mockCheckBatchScrapeStatus,
|
|
53
|
-
};
|
|
54
|
-
// Mock the module
|
|
55
|
-
jest.mock('@mendable/firecrawl-js', () => ({
|
|
56
|
-
__esModule: true,
|
|
57
|
-
default: jest.fn().mockImplementation(() => mockInstance),
|
|
58
|
-
}));
|