Simple icons/modelcontextprotocol

MCP Server

Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.

Authentication

SearchApi's MCP server supports two authentication methods.

OAuth (Recommended)

Compatible clients (including Claude, Cursor, Codex, VS Code, and Zed) handle authentication automatically. Modern clients use Client ID Metadata Documents; other OAuth clients use secure dynamic registration. Just provide the base MCP URL:

https://www.searchapi.io/mcp

When your client connects for the first time, it will open a browser window where you can sign in and select which MCP integration to authorize. Subsequent connections reuse the stored token automatically.

Token Authentication

For clients without OAuth support or for server-to-server integrations, send your MCP token in the X-MCP-Token header:

X-MCP-Token: YOUR_TOKEN

Get your token from the MCP integrations dashboard. Do not put credentials in an MCP URL; URLs can be retained in browser history and intermediary logs.

Which method should I use?

Use OAuth if your client supports it — it's more secure (tokens expire and rotate automatically) and easier to manage. Use token auth for programmatic access or clients that don't support OAuth.

Set up your client

OAuth (Recommended)

If your client supports OAuth, use the base URL. Authentication is handled automatically on first connect.

No token needed. Your client handles authentication automatically via OAuth.

Claude Code

Run this command in your terminal:

claude mcp add --transport http searchapi https://www.searchapi.org/mcp

Your browser opens on first connect to sign in and pick an integration.

Simple icons/claude Claude Desktop

Add it from the app — no config file needed:

  1. Open Customize → Connectors.
  2. Click Add → Add custom connector.
  3. Paste the URL above, click Add, then follow the OAuth prompt to authorize.

Available on all plans.

VS Code

Create .vscode/mcp.json in your project root:

{
  "servers": {
    "searchapi": {
      "type": "http",
      "url": "https://www.searchapi.org/mcp"
    }
  }
}

Start the SearchApi server from the MCP view; VS Code handles the OAuth sign-in.

Simple icons/zed Zed

Add this under context_servers in your Zed settings:

{
  "context_servers": {
    "searchapi": {
      "url": "https://www.searchapi.org/mcp"
    }
  }
}

Zed uses context_servers instead of mcpServers and runs the OAuth sign-in on first connect.

Simple icons/cursor Cursor

Add this to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "searchapi": {
      "url": "https://www.searchapi.org/mcp"
    }
  }
}

Cursor opens the OAuth sign-in when it first connects.

Codex

Run this command in your terminal:

codex mcp add searchapi --url https://www.searchapi.org/mcp

Codex discovers OAuth automatically. Run codex mcp login searchapi if sign-in is not opened immediately.

Any stdio-only client

Use the OAuth-aware mcp-remote bridge:

{
  "mcpServers": {
    "searchapi": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://www.searchapi.org/mcp"
      ]
    }
  }
}

Requires Node.js (for npx). Your browser opens for authorization on first connect.

Token Authentication

Replace YOUR_TOKEN with the token from your dashboard.

Send the token with the X-MCP-Token header — not in the URL or the Authorization header (that's reserved for OAuth).

Simple icons/cursor Cursor

Add this to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "searchapi": {
      "url": "https://www.searchapi.org/mcp",
      "headers": {
        "X-MCP-Token": "YOUR_TOKEN"
      }
    }
  }
}

Or install it automatically:

Simple icons/cursor Install in Cursor
Simple icons/windsurf Windsurf

Add this to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "searchapi": {
      "serverUrl": "https://www.searchapi.org/mcp",
      "headers": {
        "X-MCP-Token": "YOUR_TOKEN"
      }
    }
  }
}

Windsurf uses the serverUrl key instead of url.

Codex

Add this to ~/.codex/config.toml:

[mcp_servers.searchapi]
url = "https://www.searchapi.org/mcp"
http_headers = { "X-MCP-Token" = "YOUR_TOKEN" }
VS Code

Create .vscode/mcp.json in your project root:

{
  "servers": {
    "searchapi": {
      "type": "http",
      "url": "https://www.searchapi.org/mcp",
      "headers": {
        "X-MCP-Token": "YOUR_TOKEN"
      }
    }
  }
}
Simple icons/zed Zed

Add this under context_servers in your Zed settings:

{
  "context_servers": {
    "searchapi": {
      "url": "https://www.searchapi.org/mcp",
      "headers": {
        "X-MCP-Token": "YOUR_TOKEN"
      }
    }
  }
}
Simple icons/opencode OpenCode

Add this to opencode.json in your project root:

{
  "mcp": {
    "searchapi": {
      "type": "remote",
      "url": "https://www.searchapi.org/mcp",
      "enabled": true,
      "oauth": false,
      "headers": {
        "X-MCP-Token": "YOUR_TOKEN"
      }
    }
  }
}
Claude Code

Run this command in your terminal:

claude mcp add --transport http searchapi https://www.searchapi.org/mcp --header "X-MCP-Token: YOUR_TOKEN"
Simple icons/claude Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "searchapi": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://www.searchapi.org/mcp",
        "--header",
        "X-MCP-Token:${MCP_TOKEN}"
      ],
      "env": {
        "MCP_TOKEN": "YOUR_TOKEN"
      }
    }
  }
}

Restart Claude Desktop after saving. Requires Node.js (for npx).

Any other client

Bridge a stdio-only client with mcp-remote. Set MCP_TOKEN in its environment:

npx mcp-remote https://www.searchapi.org/mcp --header "X-MCP-Token:${MCP_TOKEN}"

What you can do

Click any tool card to copy an example prompt you can use with your AI assistant.

Simple icons/airbnb
Airbnb Experience Details
Get details about Airbnb experience 394929
Simple icons/airbnb
Airbnb Experiences Search
Find cooking classes in Tokyo for 2 adults this weekend
Simple icons/airbnb
Airbnb Property Availability Calendar
Show availability for Airbnb property 357576 for the next 3 months
Simple icons/airbnb
Airbnb Property Reviews
Get reviews for Airbnb property 41895465
Simple icons/airbnb
Airbnb Property
Get details for Airbnb property 12345678 from March 1-7 for 2 adults
Simple icons/airbnb
Airbnb Search
Find entire homes in Barcelona for 2 adults from March 1-7
Simple icons/amazon
Amazon Categories
Find Amazon categories matching 'laptop'
Simple icons/amazon
Amazon Offers
Show the seller offers for Amazon ASIN B088NRLMPV
Simple icons/amazon
Amazon Product
Get product details for Amazon ASIN B088NRLMPV
Simple icons/amazon
Amazon Search
Search for 'wireless noise cancelling headphones' on Amazon
Simple icons/appstore
Apple App Details
Get details for the Instagram app with product_id '389801252'
Simple icons/appstore
Apple Appstore Search
Search for 'Instagram' on the Apple App Store
Simple icons/appstore
Apple Appstore Top Grossing
What are the top grossing iPhone apps in the US App Store?
Simple icons/apple
Apple Maps Guide
Show the places in Apple Maps guide 15492827070352335266
Simple icons/apple
Apple Maps Place Details
Get Apple Maps details for the place with id ID14FABEE6C8FC5A
Simple icons/apple
Apple Maps Search
Find coffee shops near Times Square, New York on Apple Maps
Autoscout24 Listing
Get the full detail sheet for this AutoScout24 listing
Autoscout24
Find Volkswagen Golf listings in Germany under €15,000
Simple icons/bestbuy
Bestbuy Product
Look up BestBuy product 6667474 and tell me how the open-box price compares to new
Bestbuy Search
Search for '4K TV' on BestBuy
Simple icons/bing
Bing News
Search Bing News for 'climate change policy updates'
Simple icons/bing
Bing Product
Get product details using the product_token from bing_shopping results
Simple icons/bing
Bing Search
Search Bing for 'latest news about artificial intelligence'
Simple icons/bing
Bing Shopping
Search Bing Shopping for 'wireless headphones under $100'
Simple icons/bookingdotcom
Booking Autocomplete
Look up Booking.com destination ids matching 'dubro'
Simple icons/bookingdotcom
Booking Property
Get Booking.com details for this booking.com hotel from September 10-17 for 2 adults
Simple icons/bookingdotcom
Booking
Find Booking.com stays in Dubrovnik from September 10-17 for 2 adults
Simple icons/openai
Chatgpt
Ask ChatGPT to explain the difference between TCP and UDP
Simple icons/duckduckgo
Duckduckgo Search Light
Search DuckDuckGo for 'best programming languages 2026'
Simple icons/ebay
Ebay Product
Get details for eBay listing with item_id '123456789012'
Simple icons/ebay
Ebay Search
Search eBay for 'vintage mechanical keyboard' under $200
Simple icons/ebay
Ebay Shipping Calculator
What would eBay charge a seller to ship a 3.5 lb, 12x9x4 inch package from ZIP 10001 to 90210?
Facebook Business Page Reviews
Get the latest Facebook reviews for this facebook.com page
Facebook Business Page
Get the details of this facebook.com page
Gemini
Get a Gemini answer for 'benefits of long distance running'
Simple icons/github
Github Profile
Show me the pinned repositories and contribution activity for torvalds on GitHub
Simple icons/github
Github Repository
How active is rails/rails on GitHub, and who contributes to it?
Simple icons/github
Github Search
Find the most starred Rust web framework repositories on GitHub
Simple icons/github
Github Trending
What Python repositories are trending on GitHub this week?
Google Ads Advertiser Search
Search for advertisers named 'Tesla'
Google Ads Search
Find ads run by Tesla or search ads for domain tesla.com
Google Ai Mode
Get AI-generated overview for 'benefits of long distance running'
Google Events Details
Find concerts in Austin this weekend and show the full details of the first one, including where to get tickets
Google Events
Find concerts in Austin this weekend
Simple icons/google flights
Google Flights Calendar One Way
Show me the cheapest days to fly one-way from SFO to NRT in March
Simple icons/google flights
Google Flights Calendar Round Trip
Show me the cheapest dates for a round-trip from JFK to LHR, departing in April and returning a week later
Simple icons/google flights
Google Flights Deals
Find cheap flight deals from New York
Simple icons/google flights
Google Flights Location Search
Find the airport code for Chicago
Simple icons/google flights
Google Flights One Way
Find one-way flights from JFK to LAX on January 20th
Simple icons/google flights
Google Flights Round Trip
Find round-trip flights from JFK to LAX, departing January 20th and returning January 25th
Google Hotels Autocomplete
Find destination suggestions matching 'paris'
Google Hotels Property
Get details for hotel property_token ChcI7uLR18qD4MG_ARoKL20vMGMwMmh5bBAB from March 1-7
Google Hotels
Search for hotels in Paris from December 20-25 for 2 adults
Google Images Light
Search for images of 'aurora borealis over mountains'
Google Jobs
Find software engineer jobs in San Francisco
Simple icons/google lens
Google Lens
Identify this i.ibb.co image
Google Local
Find pizza places near Brooklyn
Google Maps Directions Search Along Route
Find gas stations along the route from Los Angeles to Las Vegas
Google Maps Directions
Get driving directions from Times Square to JFK Airport
Google Maps Directions Transit
Get public transit directions from Brooklyn to Times Square
Google Maps Photos
Get photos of the Statue of Liberty from Google Maps
Google Maps Place
Get detailed info about a specific coffee shop from my Maps search
Google Maps Reviews
Get reviews for the Statue of Liberty from Google Maps
Google Maps Search
Find coffee shops near Times Square, New York
Google News Light
Search for recent news about 'artificial intelligence regulation'
Google Patents Search
Search for patents about machine learning image recognition
Google Place
Get the Knowledge Graph card for kgmid /g/11b_3cn7rv
Simple icons/googleplay
Google Play Details
Get details for the Spotify app with product_id 'com.spotify.music'
Simple icons/googleplay
Google Play Search
Search for 'Spotify' on the Google Play Store
Google Product
Get product details using the product_token from shopping results
Google Rank Tracking
Get top 100 organic results for 'best coffee shops'
Google Reverse Image
Run a Google reverse image search on this upload.wikimedia.org image
Google Scholar Case Law
Get the full opinion of the Google Scholar case with caselaw_id 6386252699535531764
Google Scholar Cases
Search Google Scholar case law for 'qualified immunity' in the fifth_circuit
Google Scholar Courts
Find the Google Scholar court identifier for the Southern District of Texas
Google Scholar
Search Google Scholar for 'transformer architecture in natural language processing'
Google Search Light
Search for 'best coffee shops in NYC'
Google Shopping Search
Search for 'iPhone 15 Pro Max' on Google Shopping
Google Travel Explore Destination
Show flights from JFK to /m/05qtj in March
Google Travel Explore
Explore destinations to fly to from JFK in March
Google Vacation Rentals
Find vacation rentals in Lake Tahoe with 3 bedrooms from March 1-7
Instagram Comments
Get the comments on this instagram.com post
Instagram Post
Get the Instagram post with shortcode DavpizrjugI
Instagram Profile
Get profile information for @leomessi on Instagram
Linkedin Ads Search
Search for Google's ads on LinkedIn
Linkedin Job Details
Get the full description and seniority level of LinkedIn job 4470016722
Linkedin Jobs
Find registered nurse jobs on LinkedIn in Chicago posted in the last week
Meta Ads Page Search
Search for Tesla pages in Meta Ad Library
Meta Ads Search
Search for Nike ads on Meta platforms
Tiktok Ads Search
Search for Nike ads on TikTok
Tiktok Advertiser Search
Search for advertisers named 'Nike' on TikTok
Simple icons/tiktok
Tiktok Autocomplete
Get TikTok search suggestions for 'iphone'
Simple icons/tiktok
Tiktok Comments
Get the comments on this tiktok.com video
Tiktok Profile
Get profile information for @therock on TikTok
Tiktok Profile Videos
Get the latest videos from @therock on TikTok
Tiktok Search
Search TikTok for videos about messi
Simple icons/tiktok
Tiktok Transcript
Get the transcript for this tiktok.com video
Simple icons/tiktok
Tiktok Video
Get details for this tiktok.com video
Simple icons/tripadvisor
Tripadvisor Forums Search
Find TripAdvisor forum threads about visiting Paris
Simple icons/tripadvisor
Tripadvisor Place
Get TripAdvisor details for place_id 190166
Simple icons/tripadvisor
Tripadvisor Reviews
Get TripAdvisor reviews for place_id 190164
Simple icons/tripadvisor
Tripadvisor
Find top attractions in Rome on TripAdvisor
Simple icons/walmart
Walmart Product
Get product details for Walmart product ID 123456789
Simple icons/walmart
Walmart Reviews
Read customer reviews for Walmart product ID 2068427086, sorted by most helpful
Simple icons/walmart
Walmart Search
Search for 'air fryer' on Walmart under $50
Simple icons/walmart
Walmart Stores
Find Walmart stores near ZIP code 33177
Simple icons/youtube
Youtube Channel Lives
Which live streams does @NASA have scheduled or live right now on YouTube?
Simple icons/youtube
Youtube Channel Posts
Get the latest community posts from @MrBeast on YouTube
Simple icons/youtube
Youtube Hashtag
Show me YouTube shorts tagged #cooking
Simple icons/youtube
Youtube Post
Get this youtube.com community post
Simple icons/youtube
Youtube Search
Search YouTube for 'how to make sourdough bread'
Simple icons/youtube
Youtube Transcript
Get the transcript for YouTube video dQw4w9WgXcQ
Simple icons/youtube
Youtube Video
Get details for YouTube video RcYjXbSJBN8
Simple icons/zillow
Zillow Property
Get full details for Zillow property 69817587
Simple icons/zillow
Zillow Search
Find 3-bedroom houses for sale in Austin, TX under $500,000

Limits

  • Maximum 10 MCP integrations per account
  • Standard API rate limits apply
  • Each tool call counts as one API request
By connecting a client you agree to SearchApi's Terms and Privacy Policy.