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: mcp-rag-server
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
Available Tools
1 toolprotheus_searchC
Search the Protheus FAQ knowledge base for answers about TOTVS Protheus ERP
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of disclosing behavioral traits. It does not mention rate limits, pagination, result format, authentication needs, or any other behaviors beyond a basic search.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence that effectively conveys the purpose. It is front-loaded and contains no superfluous words, though it could be slightly expanded without losing conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple search tool with one parameter and an output schema, the description is minimally adequate. However, it lacks usage guidelines and behavioral details, leaving gaps for an agent to fully understand when and how to use it.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has one required parameter 'question' with 0% description coverage, meaning the parameter itself has no description. The tool description adds no further meaning, such as examples, formatting, or expected question types.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool searches the Protheus FAQ knowledge base for answers about TOTVS Protheus ERP. It includes a specific verb ('Search') and resource ('Protheus FAQ knowledge base'), accurately conveying the tool's function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives, nor are there any exclusions or context about appropriate usage scenarios. The description lacks any conditional instructions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.0- First observed
protheus_search
TDQS
With only one tool, there is no possibility of ambiguity or confusion between different tools.
A single tool enforces perfect naming consistency; there is no pattern to conflict.
One tool is borderline; for a FAQ knowledge base, a search tool alone may be insufficient for full interaction (e.g., retrieving full answers or browsing categories).
The tool covers search but lacks complementary operations like retrieving detailed results or listing topics, leaving notable gaps for a comprehensive FAQ toolset.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Token-free MCP server for structured RevoGrid Core, Pro, and Enterprise knowledge retrieval.
MCP server for querying Forkast documentation
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context22265MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that indexes documents and serves relevant context to LLMs via Retrieval Augmented Generation (RAG).4837MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.17MIT
- FlicenseNot gradedqualityDmaintenanceA Retrieval Augmented Generation MCP server that ingests documents into a local vector database and enables semantic search queries.10-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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