Skip to content
MCP server

private-gpt

Open-source local API layer for building private AI apps on your own models

Actively maintained

The repository was last updated 2 days ago and is published under Apache-2.0.

private-gpt is an open-source MCP server for ai models and llm tooling. It is available on API, CLI, macOS, Linux, Windows, Self-hosted and Web.

Pricing
Open source
Platforms
API, CLI, macOS
GitHub stars
57.7K
Last commit
Language
Python
License
Apache-2.0

Similar MCP servers

About private-gpt

PrivateGPT sits between your application and a locally hosted model server. It exposes a messages-style API with streaming, async calls, token counting, file ingestion, retrieval with citations, and agentic RAG, so developers do not have to rebuild those backend pieces themselves.

It does not run models on its own. Instead it connects to any OpenAI-compatible inference server such as Ollama, llama.cpp or vLLM through an environment variable, and it works as long as that server offers chat completions and model listing endpoints. A built-in workbench UI at a local port lets you upload documents, test retrieval and toggle tools while you build.

It suits developers and small teams who want document-aware AI features that keep data on their own hardware, and who are comfortable running a Python service and a local model server.

What it does

Document ingestion and retrieval
Uploads files and artifacts, then answers questions with retrieval results and citations.
OpenAI-compatible model backend
Connects to any local inference server that implements the chat completions and models endpoints.
Built-in tools and MCP connectors
Offers web search, web fetch and code execution tools, plus custom tools and MCP connections.
Database and CSV querying
Queries connected databases and analyses tabular files without extra plumbing.
Developer workbench UI
A local browser interface for chatting, selecting models, testing retrieval and inspecting API requests.

Good for

  • Building a private question-answering app over internal documents
  • Running a local coding assistant backed by your own models
  • Adding document-aware AI to n8n or other workflow tools without sending data to the cloud
  • Prototyping an API-first AI backend before moving it to production

Pricing

Open source

Free and open source under Apache-2.0; Zylon enterprise platform is sold separately.

Prices change. Check zylon.ai before you buy.

private-gpt FAQ

Does PrivateGPT include its own language model?

No. It connects to an external OpenAI-compatible inference server, such as Ollama, and works with whichever model that server runs.

What is the difference between PrivateGPT and Zylon?

PrivateGPT is the open-source application API layer. Zylon is a commercial enterprise platform built on top of it, adding inference infrastructure, user management, connectors and deployment support.

How do I start private-gpt locally?

Install the package with uv or Homebrew, start an OpenAI-compatible model server, set the API base environment variable and run the serve command, then open the UI on port 8080.

Is private-gpt free?

Yes. private-gpt is open source, so you can use and self-host it for free.

What are the best alternatives to private-gpt?

The closest alternatives to private-gpt are Proxima, Gpt Chat, agentset, Polydev and Simple Gpt.

Where this comes from

  • Description: written from the project's README and the project's website.

How AIPoweredBot checks servers