Protheus Chat MCP Server
Provides search over the TOTVS Protheus ERP knowledge base using vector similarity and reranking.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Protheus Chat MCP Serverhow to configure sales tax in Protheus?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-protheusOr run remotely via SSE:
{
"mcpServers": {
"protheus": {
"url": "https://mcp-protheus.yourdomain.com/sse"
}
}
}Related MCP server: estudIA-MCP
Configuration
Variable | Default | Required |
|
| Database host |
|
| Database port |
| — | Database user |
| — | Database name |
| — | Database password |
| — | OpenAI API key (embeddings) |
| — | Cohere API key (reranking) |
Copy .env.example to .env and fill in your values.
Installation
Local (stdio)
uv pip install -e .
mcp-server-protheusAvailable 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-sseThe 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 → ResultsThe server connects read-only to PostgreSQL/pgvector.
Testing
uv run pytest tests/ -vAll 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.pyLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/Straider2/protheus-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server