Protheus Chat MCP Server
MCP server that enables searching a TOTVS Protheus ERP knowledge base using vector similarity and reranking.
README
Protheus Chat MCP Server
MCP (Model Context Protocol) server that exposes a knowledge base search tool
for TOTVS Protheus ERP. Uses pgvector for vector similarity search,
OpenAI (text-embedding-3-small) for question embeddings, and
Cohere (rerank-v3.5) for result reranking.
Quick Start
git clone https://github.com/Straider2/protheus-mcp.git
cd protheus-mcp
cp .env.example .env
# edit .env with your credentials
uv pip install -e .
mcp-server-protheus
Or run remotely via SSE:
{
"mcpServers": {
"protheus": {
"url": "https://mcp-protheus.yourdomain.com/sse"
}
}
}
Configuration
| Variable | Default | Required |
|---|---|---|
PGHOST |
localhost |
Database host |
PGPORT |
5433 |
Database port |
PGUSER |
— | Database user |
PGDATABASE |
— | Database name |
PGPASSWORD |
— | Database password |
OPENAI_API_KEY |
— | OpenAI API key (embeddings) |
COHERE_API_KEY |
— | Cohere API key (reranking) |
Copy .env.example to .env and fill in your values.
Installation
Local (stdio)
uv pip install -e .
mcp-server-protheus
Available commands:
mcp-server-protheus— stdio MCP server (Claude Desktop, Cursor)mcp-server-protheus-sse— SSE/HTTP server (remote access)protheus-mcp— alias for stdio
Docker (SSE)
docker compose -f docker-compose.yml up -d protheus-mcp-sse
The server listens on http://localhost:8092/sse.
Usage
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"protheus": {
"command": "uv",
"args": ["run", "mcp-server-protheus"]
}
}
}
Remote via SSE URL
{
"mcpServers": {
"protheus": {
"url": "https://mcp-protheus.yourdomain.com/sse"
}
}
}
Available Tool
protheus_search(question: str) — Search the Protheus FAQ knowledge base.
Architecture
User Question → OpenAI Embedding → pgvector Cosine Search → Cohere Rerank → Results
The server connects read-only to PostgreSQL/pgvector.
Testing
uv run pytest tests/ -v
All tests use mocked connections — no real credentials needed.
Project Structure
protheus-mcp/
├── .env.example
├── pyproject.toml
├── README.md
├── src/protheus_mcp/
│ ├── __init__.py
│ ├── search.py # pgvector search + Cohere rerank
│ └── server.py # MCP server (stdio + SSE)
└── tests/
├── conftest.py
└── test_server.py
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.