Back to Home
crazi-co icon

clara-mcp-server

by crazi-co

Overview

Exposes Clara backend APIs as tools for AI agents using the Model Context Protocol (MCP).

Installation

Run Command
python run.py

Environment Variables

  • USER_ID
  • API_KEY_TOKEN
  • PORT
  • BASE_URL

Security Notes

Critical path traversal vulnerability exists in the `agent.analysis` tool. The `file_path` parameter, if an AI agent can control its value without sanitization, allows reading arbitrary local files from the server's filesystem and subsequently uploading them to the backend Clara API. This presents a severe risk of data exfiltration or unauthorized access to server resources. Additionally, the server uses global mutable variables (`app.data.user_id`, `app.data.api_key_token`) for authentication context. In a concurrent environment, these global variables could be overwritten by a different request during processing, potentially leading to incorrect or leaked credentials being used by a request. The default `log_level` for Uvicorn is set to 'error', which may hinder effective security incident detection and debugging.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Stars0
Forks0
Last Update2025-11-29

Tags

AI AgentsAPI GatewayMCPPythonClara API