Skip to main content
Glama
Straider2

Protheus Chat MCP Server

by Straider2

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"
    }
  }
}

Related MCP server: mcp-rag-server

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

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool updatev0.1.0
    • First observedprotheus_search

TDQS

B3.2/5.0
Disambiguation5/5

With only one tool, there is no possibility of ambiguity or confusion between different tools.

Naming Consistency5/5

A single tool enforces perfect naming consistency; there is no pattern to conflict.

Tool Count3/5

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

Completeness3/5

The tool covers search but lacks complementary operations like retrieving detailed results or listing topics, leaving notable gaps for a comprehensive FAQ toolset.

Maintenance

ActivityStale
ResponsivenessNo issues

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

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context
    22
    265
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that indexes documents and serves relevant context to LLMs via Retrieval Augmented Generation (RAG).
    48
    37
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.
    17
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Retrieval Augmented Generation MCP server that ingests documents into a local vector database and enables semantic search queries.
    10
    -

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