datasinking
- Type
- MCP server
- Scanned
- Nov 21, 2026
- Version
- ca51593c3356
- Files read
- 74
DataSinking provides MCP servers, agent skills, and client libraries that fetch full-text company financial reports as Markdown from the DataSinking API. It does not run shell commands or modify local files, and its main risks are that the Python MCP server places your API key in URL query strings where network errors or logs can expose it, and the Node MCP server builds API paths from tool IDs without checking that they are numbers.
What it can reach
- Network
- Connects over HTTPS to api.datasink.ing (or a user-configured DATASINK_API_URL) to list exchanges, stocks, and report sections, fetch financial report text, and submit or check backfill requests.
- Secrets
- Reads the DATASINK_API_KEY environment variable to authenticate requests to the DataSinking API.
- Files
- The Node MCP server reads its own bundled package.json at startup for its version number; the MCP servers do not read or write user files.
Findings
-
LowPython MCP server sends API key in URL query string and can leak it in network errors
Unlike the Node MCP server, which sends DATASINK_API_KEY in an Authorization Bearer header and catches network errors, the Python MCP server appends the secret key to every request URL as an apikey query parameter and does not catch requests.RequestException. Any proxy or HTTP debug log will record the key in the URL, and if a connection or timeout error occurs, the underlying urllib3 exception message includes the full request path and query string, which can expose the API key in logs and tool error output.
Fix: Send DATASINK_API_KEY in an Authorization: Bearer header instead of query parameters, and catch requests.RequestException in _get and _post to raise a sanitized ToolError without the request URL.
-
LowNode MCP server interpolates unvalidated IDs into API URL paths
The Node MCP server uses the low-level MCP Server class, which does not validate tool arguments against their declared JSON Schema types at runtime. In get_report, list_sections, get_section, and get_feedback_status, document_id and feedback_id are interpolated directly into the URL path without checking that they are integers. A prompt-injected agent can pass relative path segments (such as ../other-path?param=value) to send authenticated GET requests carrying the user's Bearer token to arbitrary paths on the configured API host or reverse proxy.
Fix: Check Number.isInteger(args.document_id) and Number.isInteger(args.feedback_id) before constructing the request path, throwing a DataSinkingError when validation fails.
