Skip to main content
Glama

DataToRAG MCP

Connect your Google Workspace, Jira, and Confluence to Claude — through one MCP endpoint.

DataToRAG is an open-source Model Context Protocol gateway that turns your everyday work tools into something your AI assistant can actually use. Gmail, Calendar, Drive, Docs, Sheets, Slides, Tasks, Contacts, Jira, and Confluence — 77 tools across one endpoint, with multi-account support and token-optimized responses.


Why DataToRAG

Works with any MCP client. Claude Desktop, Cursor, Windsurf, custom agents — anything that speaks the Model Context Protocol.

Google Workspace, natively. 55 tools across Gmail, Calendar, Drive, Docs, Sheets, Slides, Contacts, and Tasks. Search threads, draft replies, label and triage mail, update cells, batch-create slides, find files, manage tasks — from a single prompt.

Atlassian, too. 22 tools for Jira and Confluence: search by JQL or CQL, create and transition issues, read and edit pages, manage comments and attachments.

Multi-account out of the box. Connect personal, shared, and team Google accounts under one endpoint. Your assistant can target a specific account or search across all of them.

Token-optimized. Naive API wrappers dump everything into your context window. DataToRAG tunes tool responses for token efficiency — the same Gmail thread read costs a fraction of the tokens, which means longer conversations and smarter agents.

OAuth per user. Each user signs in with Google and Atlassian themselves. No shared service accounts, no tokens in code.

Self-hostable. MIT-licensed. Run it on your own infrastructure, or use the hosted version at datatorag.com.


Related MCP server: MCP-GET

Quick Start (hosted)

Add this to your MCP client config:

{
  "mcpServers": {
    "datatorag": {
      "url": "https://datatorag.com/mcp"
    }
  }
}

Then sign in at datatorag.com/dashboard and connect your Google or Atlassian accounts. That's it — your AI assistant now has access to every tool listed in the docs.


Available Connectors

Connector

Tools

Services

Google Workspace

55

Gmail · Calendar · Drive · Docs · Sheets · Slides · Contacts · Tasks

Atlassian

22

Jira · Confluence

Each tool is documented with its operations, required OAuth scopes, and example prompts at datatorag.com/docs.

Both connectors are themselves open-source MCP servers that plug into the gateway: gws-mcp and atlassian-mcp.


Architecture

              ┌──────────────────┐
              │    MCP Client    │
              │  Claude Desktop, │
              │   Cursor, etc.   │
              └────────┬─────────┘
                       │
             POST /mcp │  Bearer <OAuth token>
                       │
                       ▼
              ┌──────────────────┐
              │    1. Auth       │── OAuth2 token
              │                  │   validation
              └────────┬─────────┘   401 if invalid
                       │
                       ▼
              ┌──────────────────┐
              │   2. Session     │── Streamable HTTP
              │                  │   Create or reuse
              └────────┬─────────┘
                       │
                       ▼
              ┌──────────────────┐    ┌────────────┐
              │  3. tools/list   │───>│ PostgreSQL │
              │     tools/call   │    │            │
              └────────┬─────────┘    │ users      │
                       │              │ tools      │
                       ▼              │ accounts   │
              ┌──────────────────┐    │            │
              │  4. Route by     │<──>│            │
              │     namespace    │    └────────────┘
              └────────┬─────────┘
                       │
          ┌────────────┼─────────────┐
          ▼            ▼             ▼
   ┌────────────┐ ┌────────────┐ ┌──────────┐
   │  gws-mcp   │ │ atlassian- │ │ plugin-n │
   │  (Node.js) │ │    mcp     │ │   ...    │
   │ :40000/mcp │ │ :40001/mcp │ │          │
   └────────────┘ └────────────┘ └──────────┘

The gateway is a thin routing layer: it authenticates the client, forwards per-user OAuth tokens to the plugin that owns the tool namespace, and streams the response back. Plugins run as separate Node.js processes — they can be added, removed, or replaced without changing the gateway.


Self-Hosting

Prerequisites

  • Docker

  • A PostgreSQL database and its connection string in DATABASE_URL — any Postgres works (Neon, RDS, or a container you run yourself). The dev stack does not start one for you.

  • Google OAuth client for login (and a separate one for Google Workspace scopes)

  • Atlassian OAuth client (optional, for Jira + Confluence)

Local Development

# Apply the schema to your database (once, and after any schema change)
pnpm --filter @datatorag-mcp/db db:push

# Boot the gateway
DATABASE_URL=<your-postgres-url> \
  docker compose -f docker/docker-compose.dev.yml up -d

Migrations are deliberately not run on startup — the stack never mutates your schema as a side effect of booting.

Connect a local MCP client:

{
  "mcpServers": {
    "datatorag": {
      "url": "http://localhost:8285/mcp"
    }
  }
}

Development Without Docker

pnpm install

# Push schema + seed a test user
DATABASE_URL=<your-postgres-url> \
  pnpm --filter @datatorag-mcp/db db:push && \
  pnpm --filter @datatorag-mcp/db db:seed

# Start gateway (reads DATABASE_URL from the root .env)
pnpm dev:gateway

Environment Variables

Variable

Default

Required

Description

DATABASE_URL

Yes

PostgreSQL connection string

GATEWAY_PORT

8285

No

Gateway server port

GATEWAY_BASE_URL

http://localhost:8285

No

Public URL for OAuth redirects

GOOGLE_CLIENT_ID

For login

Google OAuth client ID (dashboard sign-in, minimal scopes)

GOOGLE_CLIENT_SECRET

For login

Google OAuth client secret

GOOGLE_GWS_CLIENT_ID

For GWS tools

Separate OAuth client for Google Workspace scopes

GOOGLE_GWS_CLIENT_SECRET

For GWS tools

ATLASSIAN_CLIENT_ID

For Atlassian tools

Atlassian OAuth client ID

ATLASSIAN_CLIENT_SECRET

For Atlassian tools

POSTHOG_API_KEY

No

PostHog project key for server-side analytics (tool calls, signups, OAuth)

NEXT_PUBLIC_POSTHOG_KEY

No

Same value as POSTHOG_API_KEY, exposed to the browser. Inlined at build time — must be set when running next build or docker build. PostHog project keys are safe to expose publicly.

Production Deployment

Production runs on Docker Compose with a build-arg pipeline for NEXT_PUBLIC_* values. See docker/docker-compose.prod.yml and apps/gateway/Dockerfile for the reference setup.


Project Structure

apps/
  gateway/             MCP proxy server (Express + MCP SDK) + Next.js dashboard
    src/
      app/             Dashboard, docs, landing page (Next.js App Router)
      gateway/         MCP routing, auth, plugin manager, tool tracking
      lib/             Shared utilities (docs parser, analytics, hooks)
    content/
      blog/            Markdown blog posts
      docs/            Markdown connector docs
    server.ts          Custom Express server entry point
packages/
  config/              Environment variable parsing (zod schema)
  db/                  Drizzle ORM schema + database client
  types/               Shared TypeScript types
  auth/                OAuth helpers
docker/
  docker-compose.dev.yml    Local development stack
  docker-compose.prod.yml   Production (Lightsail)

Contributing

Issues and pull requests welcome. For substantial changes, open an issue first so we can align on direction.

License

MIT

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    A unified Model Context Protocol server that provides a consistent interface for AI assistants to interact with productivity tools like Linear, GitHub, Slack, and Notion. It enables users to search, retrieve, and manage tasks and data across multiple workplace services from a single endpoint.
    Last updated
    38
    MIT
  • F
    license
    -
    quality
    C
    maintenance
    A gateway service that connects AI assistants to numerous external tools like Notion, GitHub, and Google Workspace through a single Model Context Protocol endpoint. It provides a centralized hub for managing multiple tool integrations with secure authentication and a unified API architecture.
    Last updated

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • One shared context your team's AI tools read & write over MCP. No re-explaining. Free.

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/datatorag/mcp-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server