The Model Context Protocol (MCP) server is a specialized software that offers different implementations for various use cases, including data scraping, code analysis, AI model integration, and JSON manipulation. This tool helps integrate these functionalities into applications using a standardized protocol.
This specialized MCP server collects structured cannabis strain data from Leafly.com following a standardized schema.
Clone the repository:
git clone <repository-url>
cd firecrawl-mcp-server
Install dependencies:
npm install
Set up environment variables:
# Copy the example .env file
cp .env.example .env
# Edit the .env file and add your Firecrawl API key
nano .env
Build the project:
npm run build
There are two ways to set your Firecrawl API key:
Using an environment variable:
export FIRECRAWL_API_KEY=your_api_key_here
Using a .env file:
FIRECRAWL_API_KEY=your_api_key_here
Once integrated with the Firecrawl MCP server:
{
  "name": "firecrawl_leafly_strain",
  "arguments": {
    "strains": ["Blue Dream", "OG Kush", "Sour Diesel"],
    "exportFormat": "csv"
  }
}
For LLM-powered extraction:
{
  "name": "firecrawl_extract",
  "arguments": {
    "urls": ["https://www.leafly.com/strains/blue-dream"],
    "schema": {
      "type": "object",
      "properties": {
        "strain_name": { "type": "string" },
        "thc_percentage": { "type": "number" },
        "cbd_percentage": { "type": "number" },
        "effects": { "type": "string" },
        "flavors": { "type": "string" },
        "medical": { "type": "string" },
        "terpenes": { "type": "object" }
      }
    },
    "prompt": "Extract comprehensive cannabis strain data from this Leafly page."
  }
}
# Set the Firecrawl API key (required)
export FIRECRAWL_API_KEY=your_api_key_here
# Using npm scripts
npm run scrape-leafly -- output.csv "Blue Dream,OG Kush,Sour Diesel"
# Or running directly
node dist/leafly-scraper-cli.js output.csv "Blue Dream,OG Kush,Sour Diesel"
If you encounter TypeScript compilation errors:
Ensure all dependencies are installed:
npm install
Install TypeScript if needed:
npm install -g typescript
Fix module errors by installing type definitions:
npm install --save-dev @types/node
This server provides code analysis capabilities and file system access for codebase navigation.
pip install mcp-python-sdk watchdog
python mcp_server.py
This server provides access to DeepSeek AI models for text generation and document processing.
Ensure Node.js 14+ is installed
Install dependencies:
npm install @modelcontextprotocol/sdk openai dotenv
Set up API key:
echo "DEEPSEEK_API_KEY=your_api_key_here" > .env
node deepseek_mcp.js
This server provides advanced JSON querying and manipulation capabilities.
npm install @modelcontextprotocol/sdk node-fetch jsonpath
node json_mcp.js
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "firecrawl-leafly-strain" '{"command":"npx","args":["-y","@modelcontextprotocol/cli","serve","firecrawl-mcp-server"],"env":{"FIRECRAWL_API_KEY":"${FIRECRAWL_API_KEY}"}}'See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
    "mcpServers": {
        "firecrawl-leafly-strain": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/cli",
                "serve",
                "firecrawl-mcp-server"
            ],
            "env": {
                "FIRECRAWL_API_KEY": "${FIRECRAWL_API_KEY}"
            }
        }
    }
}To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
    "mcpServers": {
        "firecrawl-leafly-strain": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/cli",
                "serve",
                "firecrawl-mcp-server"
            ],
            "env": {
                "FIRECRAWL_API_KEY": "${FIRECRAWL_API_KEY}"
            }
        }
    }
}3. Restart Claude Desktop for the changes to take effect