firecrawl-mcp 1.4.2 → 1.5.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/README.md CHANGED
@@ -6,7 +6,7 @@ Big thanks to [@vrknetha](https://github.com/vrknetha), [@cawstudios](https://ca
6
6
 
7
7
  ## Features
8
8
 
9
- - Scrape, crawl, search, extract and batch scrape support
9
+ - Scrape, crawl, search, extract, deep research and batch scrape support
10
10
  - Web scraping with JS rendering
11
11
  - URL discovery and crawling
12
12
  - Web search with content extraction
package/dist/index.js CHANGED
@@ -734,12 +734,36 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
734
734
  if ('success' in response && !response.success) {
735
735
  throw new Error(response.error || 'Scraping failed');
736
736
  }
737
- const content = 'markdown' in response
738
- ? response.markdown || response.html || response.rawHtml
739
- : null;
737
+ // Format content based on requested formats
738
+ const contentParts = [];
739
+ if (options.formats?.includes('markdown') && response.markdown) {
740
+ contentParts.push(response.markdown);
741
+ }
742
+ if (options.formats?.includes('html') && response.html) {
743
+ contentParts.push(response.html);
744
+ }
745
+ if (options.formats?.includes('rawHtml') && response.rawHtml) {
746
+ contentParts.push(response.rawHtml);
747
+ }
748
+ if (options.formats?.includes('links') && response.links) {
749
+ contentParts.push(response.links.join('\n'));
750
+ }
751
+ if (options.formats?.includes('screenshot') && response.screenshot) {
752
+ contentParts.push(response.screenshot);
753
+ }
754
+ if (options.formats?.includes('extract') && response.extract) {
755
+ contentParts.push(JSON.stringify(response.extract, null, 2));
756
+ }
757
+ // Add warning to response if present
758
+ if (response.warning) {
759
+ server.sendLoggingMessage({
760
+ level: 'warning',
761
+ data: response.warning,
762
+ });
763
+ }
740
764
  return {
741
765
  content: [
742
- { type: 'text', text: content || 'No content available' },
766
+ { type: 'text', text: contentParts.join('\n\n') || 'No content available' },
743
767
  ],
744
768
  isError: false,
745
769
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firecrawl-mcp",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
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
6
  "bin": {