# SurfSense

> Typed live-web connectors and a research workspace, over one API and MCP server

- Category: Data & Labeling / Web Scraping & Crawling
- Language: Python
- Licence: Apache-2.0 (the surfsense_backend/app/proprietary/ directory is Business Source License 1.1)
- Repository: https://github.com/MODSetter/SurfSense
- Website: https://www.surfsense.com
- Canonical page: https://ai-tldr.dev/tools/surfsense/

## In short

SurfSense is an open-source platform that gives AI agents structured data from the places answers actually live. It sits in the Web Scraping & Crawling category of the Data & Labeling tools and is open-source, written in Python and licensed Apache-2.0 (the surfsense_backend/app/proprietary/ directory is Business Source License 1.1). To get started: call a connector over REST.

## Overview

SurfSense is an open-source platform that gives AI agents structured data from the places answers actually live. Each source — Reddit, YouTube, Instagram, TikTok, Amazon, Walmart, Google Maps, Google Search, Indeed, and generic web crawling — is a REST endpoint that returns typed JSON items such as posts, comments, transcripts, reviews and SERP results, rather than a page of HTML or a markdown blob the agent has to parse. The same connectors are exposed as native tools through a hosted MCP server, so Claude, Cursor or any agent framework can call them directly.

The project positions this against three neighbouring approaches. Browser agents can click and log in, but for read-only retrieval an LLM-in-a-browser loop burns minutes and tokens per page, where a connector call is a single HTTP request. Generic scraping APIs turn a page into markdown but degrade on bot-protected platforms. Search APIs answer from a web index and cannot pull a thread's comments or a place's reviews. SurfSense's answer to all three is a typed, per-platform endpoint plus an agent harness that handles retries, structured output and metering.

Behind the connectors sits the research workspace SurfSense started as — an open-source NotebookLM alternative. You can upload documents or sync Google Drive, OneDrive and Dropbox into a knowledge base with hybrid semantic and full-text search and cited answers, generate reports, podcasts, slide decks and narrated overviews from it, run scheduled or event-triggered agent turns that write results back to Notion, Slack, Linear or Jira, and collaborate in real time with role-based access. There is no model lock-in: 100+ LLMs via the OpenAI spec and LiteLLM, thousands of embedding models, and full local support through vLLM and Ollama.

Licensing is open-core. Everything outside the `surfsense_backend/app/proprietary/` directory is Apache-2.0; that directory is Business Source License 1.1. The hosted cloud bills pay-as-you-go per item returned or page fetched, with failed calls not billed, while self-hosted installs ship with billing switched off and are limited only by your hardware and your own model keys.

## What it does

- Typed REST connectors for Reddit, YouTube, Instagram, TikTok, Amazon, Walmart, Google Maps, Google Search, Indeed and open-web crawling
- A hosted MCP server exposing every connector as a native agent tool, plus external MCP connectors with one-click OAuth for Notion, Slack and Jira
- Knowledge base with 50+ file formats, cloud-drive sync, hybrid semantic and full-text search, and cited answers
- Deliverable studio: reports exported to PDF/DOCX/HTML/LaTeX/EPUB, two-host AI podcasts, editable slide decks and narrated video overviews
- Automations that run agent turns on a schedule or on an event and write results back to Notion, Slack, Linear or Jira
- Desktop app with a global shortcut, select-text and screenshot assist, and a watched local folder that auto-syncs into the knowledge base
- No vendor lock-in: 100+ LLMs via the OpenAI spec and LiteLLM, 6,000+ embedding models, and local inference through vLLM or Ollama

## Getting started

You can call a hosted connector with an API key, wire the MCP server into an agent, or self-host the whole platform with Docker. Self-hosted installs run with billing off.

1. Call a connector over REST

   Every connector is a POST endpoint scoped to a workspace. Each connector page in the docs has copy-paste examples in Python, JavaScript, Go, PHP, Ruby, Java and C#.

```bash
curl -X POST "$SURFSENSE_API_URL/workspaces/$WORKSPACE_ID/scrapers/reddit/scrape" \
  -H "Authorization: Bearer $SURFSENSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "search_queries": ["your brand"],
    "community": "SaaS",
    "sort": "top",
    "time_filter": "week"
  }'
```

2. Give the connectors to an agent over MCP

   Point any MCP client at the SurfSense MCP server and every connector becomes a callable tool, such as surfsense_reddit_scrape or surfsense_google_search. The server can also be run locally from the surfsense_mcp directory.

```json
{
  "mcpServers": {
    "surfsense": {
      "url": "https://mcp.surfsense.com/mcp",
      "headers": { "Authorization": "Bearer ${SURFSENSE_API_KEY}" }
    }
  }
}
```

3. Self-host the platform

   Docker Desktop must be installed and running. The install script also sets up Watchtower for daily auto-updates; pass --no-watchtower to skip it. Docker Compose and manual installs are covered in the docs.

```bash
curl -fsSL https://raw.githubusercontent.com/MODSetter/SurfSense/main/docker/scripts/install.sh | bash
```

4. Self-host on Windows

   The same installer ships as a PowerShell script.

```bash
irm https://raw.githubusercontent.com/MODSetter/SurfSense/main/docker/scripts/install.ps1 | iex
```

## When to use it

- Reach for it when an agent needs platform-native data — Reddit comments, YouTube transcripts, Maps reviews — that a search API or a markdown scraper cannot return
- Use it to replace a brittle LLM-driven browser loop for read-only retrieval, where a single typed HTTP call is faster and cheaper
- Good for a self-hosted research workspace over your own documents, with cited answers and exportable reports
- Useful for scheduled monitoring: run an agent turn on a cadence and push the resulting brief into Slack, Notion, Linear or Jira
