# private-gpt

> private-gpt is an open-source MCP server for ai models and llm tooling. Open-source local API layer for building private AI apps on your own models. It is available on API, CLI, macOS, Linux, Windows, Self-hosted and Web.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, macOS, Linux, Windows, Self-hosted, Web
- **Website:** https://www.zylon.ai/private-gpt
- **Repository:** https://github.com/zylon-ai/private-gpt
- **GitHub stars:** 57,667
- **License:** Apache-2.0
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## 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.

## Alternatives

- [Proxima](https://ai-powered.com/mcp/proxima): Proxima is a freemium MCP server for ai models and llm tooling.
- [Gpt Chat](https://ai-powered.com/mcp/gpt-chat): Gpt Chat is an open-source MCP server for ai models and llm tooling.
- [agentset](https://ai-powered.com/mcp/agentset): agentset is a freemium MCP server for knowledge and memory.
- [Polydev](https://ai-powered.com/mcp/polydev): Polydev is a free MCP server for ai models and llm tooling.
- [Simple Gpt](https://ai-powered.com/mcp/simple-gpt): Simple Gpt is a freemium MCP server for ai models and llm tooling.
- [sinogate-mcp](https://ai-powered.com/mcp/sinogate-mcp): sinogate-mcp is an open-source MCP server for ai models and llm tooling.
- [DevRay DataLab MCP](https://ai-powered.com/mcp/devray-datalab-mcp): DevRay DataLab MCP is an open-source MCP server for ai models and llm tooling.
- [Local AI MCP](https://ai-powered.com/mcp/local-ai-mcp): Local AI MCP is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/private-gpt
