MCP Server Integration
Learn how to connect AI assistants like Cursor and automation platforms like n8n to DumplingAI using the Model Context Protocol (MCP).What is MCP?
Model Context Protocol (MCP) is an open standard that enables AI assistants and automation tools to connect to external data sources and APIs. With DumplingAI’s MCP server, you can access all DumplingAI tools directly from your AI assistant or workflow automation platform.Benefits
- Direct tool access: Use DumplingAI tools without writing API integration code
- AI assistant integration: Connect Cursor, Windsurf, and other MCP-compatible clients
- Workflow automation: Build n8n workflows that leverage DumplingAI’s capabilities
- Simplified development: Let AI assistants handle API calls and data processing
Prerequisites
Before you begin, make sure you have:- A DumplingAI account with an API key (get one here)
- An MCP-compatible client (Cursor, Windsurf, or n8n)
Available Tools
DumplingAI’s MCP server provides access to tools across multiple categories:Web Scraping & Data Extraction
scrape
- Fetch structured data and HTML from URLscrawl
- Recursively scrape multiple pagesscreenshot
- Capture webpage screenshotsextract
- Extract structured data using custom schemas
Search & Discovery
search
- Perform live web searches with previewssearch_youtube
- Search YouTube videossearch_maps
- Search Google Maps locationssearch_places
- Find places and businessessearch_news
- Search news articlessearch_tiktok_users
- Find TikTok users
AI & Processing
generate_agent_completion
- Build and interact with AI agentsgenerate_ai_image
- Generate images using AI
Social Media & Video Data
- YouTube: channel info, videos, shorts, transcripts, comments
- TikTok: profiles, videos, transcripts, comments, followers
- LinkedIn: profiles, company data
Document Processing
doc_to_text
- Extract text from documentsconvert_to_pdf
- Convert documents to PDFmerge_pdfs
- Combine PDF filestrim_video
- Trim video filesextract_document
- Extract document metadataread_pdf_metadata
/write_pdf_metadata
- Manage PDF metadata
Developer Tools
run_js_code
- Execute JavaScript coderun_python_code
- Execute Python code
Quick Start
Choose your preferred connection method:Method | Best For | Setup Complexity |
---|---|---|
Remote (Streamable HTTP) | Cursor, Windsurf, n8n | ⭐ Easy - no installation |
Local (stdio) | Claude Desktop, legacy clients | ⭐⭐ Moderate - npm package |
Remote MCP Server (Recommended)
Best for: Cursor, Windsurf, n8n, and other clients that support HTTP Streamable transport. Advantages:- No installation required
- Always up-to-date with latest features
- Simpler configuration
- Works across different machines
https://app.dumplingai.com/api/mcp
using HTTP Streamable transport with Bearer token authentication.
Cursor
Cursor supports MCP servers directly via HTTP Streamable transport.-
Open your Cursor MCP configuration file at
~/.cursor/mcp.json
- Add the DumplingAI MCP server:
-
Replace
YOUR_API_KEY
with your DumplingAI API key - Restart Cursor
- Verify the connection: The DumplingAI tools should appear in Cursor’s MCP tools list
Windsurf
Windsurf also supports MCP servers.-
Open your Windsurf MCP configuration file at
~/.codeium/windsurf/mcp_config.json
- Add the DumplingAI MCP server:
-
Replace
YOUR_API_KEY
with your DumplingAI API key - Restart Windsurf
- Verify the connection: Check that DumplingAI tools appear in Windsurf’s tools panel
n8n Workflow Automation
n8n can use DumplingAI tools in AI agent workflows via the MCP Client Tool node.- In your n8n workflow, add an AI Agent node
- Add an MCP Client Tool node
-
Create new MCP credentials:
- Connection Type: HTTP Streamable
- URL:
https://app.dumplingai.com/api/mcp
- Authentication: Header Auth
- Header Name:
Authorization
- Header Value:
Bearer YOUR_API_KEY
- Header Name:
- Connect the MCP Client Tool to your AI Agent
- The DumplingAI tools will be available to your AI agent in the workflow
Make sure to set the
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE
environment variable to true
if using community packages.Local MCP Server
Best for: Claude Desktop and clients that require stdio-based connections. Advantages:- Works with Claude Desktop
- Compatible with older MCP clients
- Runs locally on your machine
mcp-server-dumplingai
runs locally and connects to DumplingAI’s API on behalf of your client using stdio transport.
Installation
Install the DumplingAI MCP server package:Configuration for Claude Desktop
- Install via Smithery (recommended):
- Or manually configure in
~/Library/Application Support/Claude/claude_desktop_config.json
:
-
Replace
YOUR_API_KEY
with your DumplingAI API key - Restart Claude Desktop
- Verify the connection: Look for the 🔨 hammer icon in Claude Desktop indicating tools are available
Configuration for Other Clients
For clients that support stdio-based MCP (like older versions of Cursor or Windsurf):The local MCP server is maintained in a separate repository: github.com/DumplingAI/mcp-server-dumplingai
Example Use Cases
Web Research with AI Assistant
Ask your AI assistant in Cursor:- Use the
search
tool to find relevant articles - Use the
scrape
tool to extract content from each article - Summarize the findings
Content Extraction Workflow in n8n
Build an n8n workflow that:- Receives a YouTube video URL
- Uses
get_youtube_video
to fetch video details - Uses
get_youtube_transcript
to get the transcript - Uses
generate_agent_completion
to summarize the content - Saves the summary to your database
Social Media Research
Ask your AI assistant:search_tiktok_users
get_tiktok_profile_videos
get_tiktok_video
Best Practices
- API Key Security: Never commit your API key to version control. Use environment variables or secure credential storage.
- Credit Management: Monitor your credit usage in the DumplingAI dashboard. Each tool call consumes credits based on the operation.
- Rate Limits: Respect rate limits based on your subscription plan. Higher tiers offer increased rate limits.
-
Tool Selection: Use the most specific tool for your needs. For example, use
search_youtube
instead of genericsearch
for YouTube content. - Error Handling: In n8n workflows, implement error handling nodes to manage API failures gracefully.
-
Local Development: For local testing, use
http://localhost:3000/api/mcp
as your MCP URL when running the DumplingAI development server.
Comparison: Remote vs Local
Feature | Remote (Streamable HTTP) | Local (stdio) |
---|---|---|
Installation | None required | npm package |
Setup | Add URL + API key | Install package + configure |
Maintenance | Auto-updated | Manual updates |
Best for | Cursor, Windsurf, n8n | Claude Desktop |
Authentication | Bearer token in headers | Environment variable |
Performance | Direct HTTPS connection | Local process |
Troubleshooting
Remote MCP Server Issues
Problem: MCP server not connecting Solutions:- Verify your API key is correct and active in the dashboard
- Check that the URL is exactly
https://app.dumplingai.com/api/mcp
(no trailing slash) - Ensure the Authorization header format is
Bearer YOUR_API_KEY
- Restart your MCP client after configuration changes
- Check client logs for specific error messages
Local MCP Server Issues
Problem: Package not found or installation fails Solutions:- Ensure you have Node.js 18+ installed
- Try clearing npm cache:
npm cache clean --force
- Install globally:
npm install -g mcp-server-dumplingai
- Check that
DUMPLING_API_KEY
environment variable is set correctly
- Verify the config file location:
~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) - Check that the JSON syntax is valid
- Ensure Claude Desktop developer mode is enabled in Settings
- Restart Claude Desktop completely
General Issues
Problem: Rate limit errors (429) Solutions:- Check your current usage in the DumplingAI dashboard
- Upgrade your plan for higher rate limits
- Implement delays between requests in automated workflows
- Check your credit balance in the dashboard
- Upgrade to a plan with more credits
- Enable auto-recharge in your account settings
- Verify the tool parameters match the documentation
- Check that required parameters are provided
- Ensure URLs and inputs are properly formatted
- Review error messages for specific guidance
Next Steps
- Explore the API Reference for detailed tool documentation
- Learn about AI Agents for advanced use cases
- Check out Web Scraping for data extraction workflows