Skip to main content
Glama

ErgoHub MCP

Part of the ErgoHub ecosystem. The web platform lives in its own repository; this server is the layer through which AI assistants, including the one built into ErgoHub, work with it.

An MCP server for ErgoHub, a freelance marketplace (Spring Boot + React). It lets Claude, ChatGPT or Cursor work on the platform in plain language: an admin reviews pending projects, a client compares applicants, a freelancer finds work and applies, all through the real ErgoHub REST API and with the caller's own permissions.

Claude / ChatGPT / Cursor ──MCP──▶ ergohub-mcp ──REST + JWT──▶ ErgoHub backend
      (the model decides)          (28 tools, 2 prompts)        (enforces roles)

The in-app ErgoHub assistant asking for approval before publishing a project

The assistant inside ErgoHub uses these tools. Changes are shown as a card that the user must confirm.

The in-app assistant answering with a table of the client's projects

An answer built from live platform data.

Design choices

  • The backend stays the authority. The server never checks roles itself; it forwards the user's JWT and turns 401/403/404 into short messages the model can act on.

  • Whitelisted output. Some ErgoHub endpoints return full JPA entities that are recursive and include the bcrypt password hash. Those bodies are never parsed; every response goes through views.py, which keeps only named fields.

  • Write tools are marked. Tool annotations (readOnlyHint, destructiveHint) let clients ask for confirmation, and the server instructions require it.

  • User content is data. Project descriptions, cover letters and chat messages are written by other users; the instructions tell the model never to follow them.

  • Two transports, one codebase. stdio for local clients, Streamable HTTP (stateless) for ChatGPT and claude.ai.

Related MCP server: Workix MCP

Tools

Role

Tools

Everyone

whoami, list_notifications, mark_all_notifications_read, get_project, search_freelancers, my_assistant_actions

Admin

admin_overview, list_users, set_user_approval, list_all_projects, review_project, list_reports, update_report

Client

my_projects, post_project, applications_to_my_projects, decide_application, complete_project

Freelancer

find_open_projects, apply_to_project, my_applications, my_assigned_projects, complete_project

Project chat

read_project_chat, send_project_message, list_conversations

Reviews

review_counterpart, project_reviews, my_reviews

Prompts: admin_daily_review, compare_applicants(project_id).

Overview of the 28 tools grouped by role

Install

python3.11 -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env   # set ERGOHUB_API_URL and an account

Connect a client

Claude Code

claude mcp add ergohub \
  -e ERGOHUB_API_URL=http://localhost:3010 \
  -e ERGOHUB_USERNAME=admin1 -e ERGOHUB_PASSWORD=... \
  -- /absolute/path/ergohub-mcp/.venv/bin/ergohub-mcp

Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json)

Both use the same shape:

{
  "mcpServers": {
    "ergohub": {
      "command": "/absolute/path/ergohub-mcp/.venv/bin/ergohub-mcp",
      "env": {
        "ERGOHUB_API_URL": "http://localhost:3010",
        "ERGOHUB_USERNAME": "admin1",
        "ERGOHUB_PASSWORD": "..."
      }
    }
  }
}

ChatGPT and claude.ai (remote, HTTP)

Browser clients cannot start a local process; they need a public HTTPS URL.

MCP_PATH=/mcp-$(openssl rand -hex 16) MCP_ALLOWED_HOSTS=<tunnel-host> ergohub-mcp --http --allow-shared-account
# or: docker build -t ergohub-mcp . && docker run -p 8765:8765 --env-file .env ergohub-mcp
cloudflared tunnel --url http://localhost:8765   # demo only

MCP_ALLOWED_HOSTS is required behind a tunnel or proxy: the SDK's DNS-rebinding protection otherwise answers 421 Misdirected Request. The random MCP_PATH keeps a demo URL from being guessed, but it is not authentication: an exposed server with env credentials refuses to start unless --allow-shared-account is given. Add https://<tunnel><MCP_PATH> as a custom connector (claude.ai: Settings → Connectors; ChatGPT: Settings → Connectors, developer mode). Each request may carry the user's ErgoHub JWT as Authorization: Bearer <token>, so every user acts as themselves. Without a token the server falls back to the env credentials.

Production note: a real deployment should put OAuth 2.1 in front (as the MCP authorization spec describes) and leave the env credentials empty. The tunnel setup is for demos.

Inspect and test

npx @modelcontextprotocol/inspector .venv/bin/ergohub-mcp   # browse tools interactively
pytest -q                                                   # unit tests, no backend needed
python scripts/smoke_stdio.py whoami 'find_open_projects:{}'  # against a running ErgoHub

Authors

License

Proprietary. All rights reserved. This is not open-source software. The code is public so that employers and clients can assess it. You may read it and run it privately for that purpose only; see LICENSE.

Available Tools

28 tools
admin_overviewA
Read-only

[ADMIN] One-call dashboard: users waiting for approval, projects waiting for approval, open reports, and project counts by status. Use this to answer 'what needs my attention?'.

Inputs: no named parameters. Returns: object

applications_to_my_projectsB
Read-only

[CLIENT] List freelancers' applications to the signed-in client's projects, with cover letters, so you can compare candidates.

Inputs: status, project_id. Returns: result

apply_to_projectA

[FREELANCER] Apply to an open project with a cover letter (no CV attachment). The client is notified.

Inputs: project_id (required), cover_letter (required). Returns: object

complete_projectA

[CLIENT, FREELANCER, ADMIN] Mark an IN_PROGRESS project as COMPLETED: its client, its assigned freelancer or an admin. The other party is notified.

Inputs: project_id (required). Returns: object

decide_applicationA
Destructive

[CLIENT] Accept or reject an application. Accepting assigns the freelancer, moves the project to IN_PROGRESS and closes the other applicants' conversations; it cannot be undone from here.

Inputs: decision (required), application_id (required). Returns: object

find_open_projectsB
Read-only

[FREELANCER] Search approved projects that are open for applications.

Inputs: keyword, min_budget. Returns: result

get_projectA
Read-only

[ANY ROLE] Get one project's details: title, description, budget, deadline, status and client. Admins see every project, clients their own, freelancers open or assigned ones.

Inputs: project_id (required). Returns: object

list_all_projectsB
Read-only

[ADMIN] List every project on the platform.

Inputs: status. Returns: result

list_conversationsA
Read-only

[CLIENT, FREELANCER] List the chat inbox: one row per conversation (project and freelancer) with the other party, the last message and whether it accepts new messages.

Inputs: no named parameters. Returns: result

list_notificationsA
Read-only

[ANY ROLE] List the signed-in user's notifications, newest first.

Inputs: unread_only. Returns: result

list_reportsA
Read-only

[ADMIN] List reports that clients and freelancers filed about projects.

Inputs: status. Returns: result

list_usersA
Read-only

[ADMIN] List platform users with role and approval state.

Inputs: role, verified. Returns: result

mark_all_notifications_readA

[ANY ROLE] Mark all of the signed-in user's notifications as read.

Inputs: no named parameters. Returns: result

my_applicationsA
Read-only

[FREELANCER] List the signed-in freelancer's applications and their status.

Inputs: no named parameters. Returns: result

my_assigned_projectsA
Read-only

[FREELANCER] List projects the signed-in freelancer has been assigned to.

Inputs: no named parameters. Returns: result

my_assistant_actionsA
Read-only

[ANY ROLE] List what the signed-in user did through the assistant (changes they confirmed or cancelled), newest first, with the outcome. created_at and decided_at are already in Greek time (Europe/Athens). Use it for questions like "what did I do yesterday".

Inputs: limit, since. Returns: result

my_projectsA
Read-only

[CLIENT] List the projects the signed-in client has posted.

Inputs: no named parameters. Returns: result

my_reviewsA
Read-only

[CLIENT, FREELANCER] List the reviews other users wrote about the signed-in user.

Inputs: no named parameters. Returns: result

post_projectB

[CLIENT] Post a new project. It starts as PENDING until an admin approves it.

Inputs: title (required), budget (required), deadline (required), description (required). Returns: object

project_reviewsA
Read-only

[CLIENT, FREELANCER] List the reviews written on a project you take part in.

Inputs: project_id (required). Returns: result

read_project_chatA
Read-only

[CLIENT, FREELANCER] Read one conversation of a project: between its client and the assigned freelancer or an applicant.

Inputs: project_id (required), freelancer. Returns: result

review_counterpartA

[CLIENT, FREELANCER] Review the other participant of a COMPLETED project, once per project. The reviewed user is notified.

Inputs: rating (required), project_id (required), comment. Returns: object

review_projectA

[ADMIN] Approve or deny a PENDING project. Only approved projects are visible to freelancers.

Inputs: reason (required), decision (required), project_id (required). Returns: object

search_freelancersA
Read-only

[ANY ROLE] Search the public freelancer directory (approved freelancers with a profile), best rated first. Contains no contact details.

Inputs: q, city, category. Returns: result

send_project_messageA

[CLIENT, FREELANCER] Send a chat message in one conversation of a project. Before assignment only the client can start it, with an applicant who is waiting; the applicant may then reply. The other party is notified.

Inputs: content (required), project_id (required), freelancer. Returns: object

set_user_approvalA

[ADMIN] Approve (or revoke) a user account. New accounts cannot log in until approved. ErgoHub emails the user about the change.

Inputs: reason (required), username (required), approved. Returns: object

update_reportA

[ADMIN] Change a report's status and reply to the reporter, who gets a notification.

Inputs: status (required), report_id (required), admin_response (required). Returns: result

whoamiA
Read-only

[ANY ROLE] Show the signed-in ErgoHub user: username, role, approval state and token expiry.

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 28 tools

    Disambiguation4/5

    Most tools have clearly distinct role-scoped purposes, such as my_projects vs. list_all_projects vs. my_assigned_projects, and admin/client/freelancer actions are separated. A few project-listing tools and review-listing tools overlap conceptually, but the role tags and descriptions make selection manageable.

    Naming Consistency4/5

    Names overwhelmingly use snake_case and are readable, with action tools following verb_noun (post_project, apply_to_project, complete_project). Deviations like whoami, admin_overview, my_reviews, and my_projects are minor and follow a coherent 'my_' convention for personal listings.

    Tool Count3/5

    28 tools is heavy, at the edge of what a multi-role marketplace needs. The three roles (admin, client, freelancer) and chat/review/report workflows justify breadth, but several listing tools could be consolidated or parameterized.

    Completeness4/5

    The surface covers the core marketplace lifecycle: project posting and approval, freelancer discovery and application, assignment, chat, completion, reviews, notifications, and admin oversight. Gaps remain around editing or cancelling projects, withdrawing applications, and creating reports, but these are not central to most agent workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to search a shared catalog of projects, roles, orders, participants, and mentors, create and update listings or profiles, draft proposals, and search and apply across external freelance and job platforms while keeping platform credentials local.
      9
      -
    • A
      license
      A
      quality
      C
      maintenance
      Connects Claude-compatible clients to Freelancer.com so users can search and bid on projects, read and send messages, review bids and projects, and manage skills or specialty profiles. Supports multiple Freelancer accounts switchable per tool call.
      21
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI assistants to search freelance projects, submit and edit bids, read and reply to employer messages, and update a freelancer profile through an unofficial integration.
      36
      MIT