Back to Home
tyson-swetnam icon

envirofacts-mcp

Verified Safe

by tyson-swetnam

Overview

This server provides a Model Context Protocol (MCP) interface to query the EPA Envirofacts Data Service API for environmental data.

Installation

Run Command
python -m src.server

Environment Variables

  • EPA_API_BASE_URL
  • EPA_REQUEST_TIMEOUT
  • EPA_MAX_RETRIES
  • EPA_CACHE_TTL
  • LOG_LEVEL

Security Notes

The server uses `httpx` for external API calls and `pydantic-settings` for configuration, which are good practices. It communicates via stdio, limiting network attack surface. The URL construction in `query_builder.py` directly appends user-provided filter values to the URL path. While the EPA API might sanitize these, this pattern could potentially allow for manipulation of the API request path or injection of unintended query parameters if the user input contains path delimiters (e.g., '/') and the EPA API does not rigorously validate or sanitize its path segments. Given it's a public EPA API with no authentication, the impact is primarily limited to making unintended API calls rather than direct server compromise.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens50000
Stars0
Forks0
Last Update2025-12-06

Tags

EPAEnvironmental DataAPIGovernmentData Retrieval