Back to Home
EOSC-Data-Commons icon

data-commons-mcp

Verified Safe

by EOSC-Data-Commons

Overview

A server that facilitates natural language search for open-access scientific datasets and tools using a Large Language Model (LLM) and the Model Context Protocol (MCP).

Installation

Run Command
uv run uvicorn src.data_commons_search.main:app --log-config logging.yml --reload

Environment Variables

  • OPENSEARCH_URL
  • EINFRACZ_API_KEY
  • MISTRAL_API_KEY
  • OPENROUTER_API_KEY
  • CHAT_API_KEY

Security Notes

The project demonstrates good practices by using Pydantic models for input validation, which helps prevent data injection and ensures data integrity. API keys for LLM providers are externalized in a `keys.env` file and handled as `SecretStr` types by Pydantic, preventing hardcoded secrets in the codebase. The `/chat` endpoint offers an optional `CHAT_API_KEY` for authentication, which is crucial for preventing abuse in public deployments, though leaving it unset bypasses this protection. General LLM prompt injection risks apply, but the current agent design with predefined tools and prompts for specific tasks (like search and reranking) limits the scope for arbitrary code generation or unintended actions.

Similar Servers

Stats

Interest Score38
Security Score8
Cost ClassMedium
Avg Tokens2500
Stars11
Forks3
Last Update2026-01-13

Tags

EOSCData DiscoveryLLM AgentOpenSearchMCP