mattv8

ragtime: Self-Hosted RAG API and MCP Server

Ragtime is a self-hosted Python RAG service that connects local knowledge and tools to chat clients through an OpenAI-compatible API and MCP. It supports FAISS and pgvector indexes, with configurable hosted and local model providers.

View on GitHub Compare
Stars
34
Forks
10
Stars, last 30 days
+1
Last commit
1 day ago
Contributors
3

Our take

Activeregular commits and releases

Health score

46/100

How it is scored
Activity
69
Community
15
Issues
21
Pull requests
80

+1 stars in the last 30 days

  • Merges more pull requests than 89% of the projects we track
  • Fewer contributors than 81% of the projects we track

Ragtime is an unusually broad self-hosted RAG and agent platform, with active development but substantial maintainer concentration and a deployment footprint that calls for operational care.

Good fit if

  • You need both an OpenAI-compatible API and MCP access to the same configured knowledge and tools.
  • You can run a Docker Compose stack with PostgreSQL and want a choice of FAISS or pgvector for supported indexes.
  • You value a permissively licensed MIT project and can account for its heavy reliance on one maintainer.

Look elsewhere if

  • You need a small, single-purpose RAG library or service rather than a platform with chat, tools, and workspace runtimes.
  • You cannot operate a multi-service Compose deployment or manage its database and persistent data.
  • You require a project whose maintenance is distributed across several contributors; most recent contributions come from one person.
All health signals
Last commit2026-12-01 (1 day ago)
Commits, last 90 days100+
Releases, last 12 months4 (latest v1.2.0, 2026-10-13)
Contributors3 (top contributor: 98% of commits)
Issues closed, last 90 days0
Pull requests merged, last 90 days84 (typically merged in 0 days)
Project age11 months

Checked on 2026-12-03 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 17, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

34

Forks

10

Change since Dec 3, 2026: 0 stars·0 forks

Overview

Ragtime is a self-hosted Python RAG service for bringing local knowledge and tools into existing LLM clients. It combines a built-in chat UI with an OpenAI-compatible API and an MCP server, so teams can work with indexed content through clients such as OpenWebUI, Claude Desktop, VS Code Copilot, Cursor, and JetBrains IDEs. Its index backends are FAISS and PostgreSQL with pgvector, while model and embedding providers are configurable rather than tied to one model vendor.

It is aimed at people who want a central, self-hosted place for retrieval, tool access, and agent workspaces, instead of assembling those capabilities around a separate client. Alongside uploaded, Git, and filesystem indexes, Ragtime supports tools for databases, SSH, Odoo, and SolidWorks. Its scope is broader than a basic RAG endpoint, so deployment and access controls matter as much as retrieval setup.

Key Features

  • OpenAI-compatible /v1/chat/completions endpoint with streaming, plus an MCP server using HTTP Streamable and stdio transports.
  • Built-in chat UI with tool visualization, interactive charts, tables, and sandboxed HTML components.
  • FAISS or pgvector backends for Upload, Git, and Filesystem indexes; schema and PDM indexes use pgvector.
  • Configurable hosted, subscription-authenticated, and local model providers, including Ollama, llama.cpp, and LM Studio.
  • Workspace runtime sessions with live previews and optional sharing, plus integrations for databases, SSH, Odoo, and SolidWorks.
  • Security controls including authentication, tool access settings, SQL safeguards, and optional restrictions on write operations.

Use Cases

  • A team can index internal documentation or code and query it from an OpenAI-compatible client without switching to a separate chat application.
  • Developers can expose configured database, SSH, or Odoo tools to MCP-compatible coding assistants, with access governed by Ragtime settings.
  • A self-hosting administrator can combine local model runtimes with internal indexes when they want to keep the service and knowledge sources under their own infrastructure.
  • Engineering teams using SolidWorks can let agents inspect model data and, when explicitly enabled, work with approved PDM folders.

What you need

Detected in the repository

  • Python >=3.10 (from pyproject.toml)
  • A Compose file to run it with its related services
  • A test suite and automated checks on GitHub Actions

License in plain words

MITpermissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the copyright and license notice
  • Share your changes: no

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

The documented self-hosted route uses Docker Compose. Copy .env.example to .env, configure the required credentials, then start the stack:

docker compose up -d

See the README for the full Compose configuration, setup options, and integration instructions.

Alternatives

  • nosia: Nosia offers a similar self-hosted RAG and MCP service, but uses Ruby on Rails and PostgreSQL with pgvector rather than Python with FAISS or pgvector.
  • rag-agent-platform: This Java and Next.js platform combines retrieval, LLM agents, and MCP tools, rather than exposing Ragtime's Python RAG service to chat clients.
  • MaxKB: MaxKB focuses on building knowledge-based agents with workflows and external tools, rather than providing Ragtime's OpenAI-compatible RAG and MCP service.
  • Onyx: Onyx indexes connected apps and documents for chat and agents, emphasizing permission-aware enterprise search rather than Ragtime's local knowledge and tool connections.
ProjectLanguageLicenseStarsStatus
ragtimePythonMIT34Active
nosiaRubyMIT214Active
rag-agent-platformJavaMIT89Active
MaxKBPythonGPL-3.022.9kActive
OnyxPython–32.7kActive

Considerations

  • The project is actively changing, with regular commits and releases, but its three contributors are highly concentrated around one person. Recent pull request merges are frequent, while no issues were closed in the measured recent period, so issue responsiveness is harder to assess from that window.
  • The self-hosted Compose setup includes PostgreSQL and supporting services, including runtime and search components. This is more operational work than deploying a standalone API.
  • Python 3.10 or newer is listed as a runtime requirement. The README's primary deployment path is Docker Compose, and it does not require a GPU in the stated prerequisites.
  • Provider capabilities vary. For example, generic OpenAI-compatible services depend on endpoint support for model discovery and tool calls, and the README notes limitations for native image input and Responses API use.
  • Some capabilities carry additional security or host requirements. SolidWorks scripts run with the Windows account's permissions, and workspace isolation modes depend on host capabilities; review the relevant setup guidance before enabling them.

Found this useful?

Share it with someone who would like ragtime.

Comparisons