Skip to main content
Cognee Cloud can ingest data from external databases, SaaS applications, and file storage systems. Connectors are built on dlt (data load tool) and the Cognee Python SDK.

Databases

Connect to relational databases using a connection string. Cognee extracts table data and processes it into the knowledge graph.
import cognee

await cognee.serve()  # Connect to Cognee Cloud

# PostgreSQL
await cognee.add(
    "postgresql://user:pass@host:5432/mydb",
    dataset_name="postgres_data"
)
await cognee.cognify(datasets=["postgres_data"])
Supported databases:
DatabaseConnection string format
PostgreSQLpostgresql://user:pass@host:5432/db
MySQLmysql+pymysql://user:pass@host:3306/db
SQLitesqlite:///path/to/database.db
SQL Servermssql://user:pass@host:1433/db

SaaS applications

Ingest data from SaaS tools using dlt source connectors. Install the relevant dlt extra and pass the source to cognee.add().
pip install "dlt[slack]"
from dlt.sources.slack import slack_source

source = slack_source(
    selected_channels=["general", "engineering"],
    start_date=datetime(2025, 1, 1),
)
await cognee.add(source, dataset_name="slack_data")
Extracts: channels, messages, users, threads.
pip install "dlt[notion]"
from dlt.sources.notion import notion_databases

source = notion_databases()
await cognee.add(source, dataset_name="notion_data")
Extracts: databases, pages, properties.
pip install "dlt[github]"
from dlt.sources.github import github_reactions

source = github_reactions("your-org", "your-repo")
await cognee.add(source, dataset_name="github_data")
Extracts: issues, pull requests, comments, reactions.
pip install "dlt[hubspot]"
from dlt.sources.hubspot import hubspot

source = hubspot()
await cognee.add(source, dataset_name="hubspot_data")
Extracts: contacts, companies, deals, tickets.
pip install "dlt[google_sheets]"
from dlt.sources.google_sheets import google_spreadsheet

source = google_spreadsheet(
    spreadsheet_url="https://docs.google.com/spreadsheets/d/...",
)
await cognee.add(source, dataset_name="sheets_data")
Extracts: rows and columns from specified sheets.
For more connectors, see the dlt integration guide and the dlt source catalog.

File storage

Upload files directly from cloud storage services using the Cognee SDK or the Data Ingestion API. For S3 bucket integration, see S3 Storage.
All dlt sources work with both local Cognee and Cognee Cloud. When connected via cognee.serve(), data flows to your cloud tenant automatically.