Skip to main content
Glama
tuananhdta

RagBrain Auth MCP Server

by tuananhdta

RagBrain auth MCP server

Simple MCP server for:

  • POST /api/v1/auth/register

  • POST /api/v1/auth/login

  • GET /api/v1/auth/me

API base:

https://ragbrain-production.up.railway.app

Override with:

export RAGBRAIN_API_BASE="https://ragbrain-production.up.railway.app"

Setup

cd /home/mediax/research/mcp_research
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements.txt

Related MCP server: Redmine MCP Server

Run streamable HTTP server

python ragbrain_auth_mcp_server.py

Default MCP endpoint:

http://127.0.0.1:8765/mcp

Override host, port, or path:

MCP_HOST=0.0.0.0 MCP_PORT=8765 MCP_PATH=/mcp python ragbrain_auth_mcp_server.py

Tools

ragbrain_register

Inputs:

  • email

  • password

  • full_name optional

ragbrain_login

Inputs:

  • email

  • password

Returns the API access_token and caches it in the server process.

ragbrain_me

Inputs:

  • access_token optional

If access_token is omitted, it uses the token cached by the latest successful ragbrain_login.

Streamable HTTP client config example

{
  "mcpServers": {
    "ragbrain-auth": {
      "url": "http://127.0.0.1:8765/mcp"
    }
  }
}

Start the server first:

cd /home/mediax/research/mcp_research
.venv/bin/python ragbrain_auth_mcp_server.py

Note: some clients only support local STDIO MCP servers. Use a client that supports MCP Streamable HTTP.

OpenAI Agents SDK client

This repo also includes a simple OpenAI Agents SDK agent that uses the MCP server above.

Start the MCP server:

cd /home/mediax/research/mcp_research
.venv/bin/python ragbrain_auth_mcp_server.py

In another terminal, verify the agent can see the MCP tools without calling OpenAI:

cd /home/mediax/research/mcp_research
.venv/bin/python ragbrain_auth_agent.py --list-tools

Run the agent with OpenAI:

cd /home/mediax/research/mcp_research
export OPENAI_API_KEY="..."
.venv/bin/python ragbrain_auth_agent.py "Login to RagBrain with email user@example.com and password ..."

Optional config:

export RAGBRAIN_MCP_URL="http://127.0.0.1:8765/mcp"
export OPENAI_AGENT_MODEL="gpt-5.6"
A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Hash passwords with bcrypt and issue/verify JWT session tokens over A2A + MCP.

  • Random User MCP — wraps randomuser.me (free, no auth)

  • GunBroker MCP Pack — wraps the GunBroker firearms-marketplace API.

View all MCP Connectors

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/tuananhdta/mcp-auth-agent-template'

If you have feedback or need assistance with the MCP directory API, please join our Discord server