MCP, MCP server
Kalshi Prediction Markets
Kalshi Prediction Markets, an MCP server listed in the PlugVet directory.
Compatibility: Not stated.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ OBFUSCATION_FILE_OVER_READ_CAP
Why this grade
- NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
src/kalshi_mcp_server/tools/external_data.py, line 1
"""Read-only external-data fetch (host-allowlisted, GET-only). - SECRETS_PATH_DOTENV Low
Mentions a .env file.
src/kalshi_mcp_server/cli.py, line 83
"Path to a .env file to load before reading config. If omitted, " - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
src/kalshi_mcp_server/config.py, line 138
key_id = os.environ.get("KALSHI_API_KEY_ID", "").strip() - OBFUSCATION_FILE_OVER_READ_CAP Note
A file was over the read cap and was not fully read.
uv.lock, line 1
version = 1
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Pass
No shell or command execution found, and no extra permission was declared.
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Concern
can reach a host that is not written as a fixed address.
NETWORK_NO_FIXED_HOST
src/kalshi_mcp_server/tools/external_data.py, line 1
"""Read-only external-data fetch (host-allowlisted, GET-only).
src/kalshi_mcp_server/tools/external_data.py, line 98
_USER_AGENT = "kalshi-mcp-server external-data fetch (trading-agent measurement books)"
src/kalshi_mcp_server/tools/external_data.py, line 100
_WALL_CLOCK_SECONDS = 45.0 # hard cap for the whole fetch (anti slow-loris)
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
src/kalshi_mcp_server/cli.py, line 83
"Path to a .env file to load before reading config. If omitted, "
src/kalshi_mcp_server/cli.py, line 84
"we still look for a `.env` in the current working directory; "
src/kalshi_mcp_server/config.py, line 138
key_id = os.environ.get("KALSHI_API_KEY_ID", "").strip()
Show more
src/kalshi_mcp_server/cli.py, line 94
"""Load a .env file before resolving config.
src/kalshi_mcp_server/cli.py, line 97
- Otherwise, look for a `.env` in CWD and load it if present (no error
src/kalshi_mcp_server/cli.py, line 100
Values already in the environment win over .env entries (override=False).
src/kalshi_mcp_server/cli.py, line 109
cwd_env = Path.cwd() / ".env"
src/kalshi_mcp_server/cli.py, line 118
# Logging is configured AFTER env load so LOG_LEVEL from .env applies,
src/kalshi_mcp_server/cli.py, line 319
CLI auto-loads `./.env`, so an unrelated value must not break stdio.
src/kalshi_mcp_server/config.py, line 146
pem_path = os.environ.get("KALSHI_PRIVATE_KEY_PATH", "").strip() or None
src/kalshi_mcp_server/config.py, line 147
pem_text = os.environ.get("KALSHI_PRIVATE_KEY_PEM", "").strip() or None
src/kalshi_mcp_server/oauth.py, line 248
signing_key = os.environ.get("MCP_JWT_SIGNING_KEY", "").strip()
src/kalshi_mcp_server/oauth.py, line 399
jwt_signing_key=os.environ.get("MCP_JWT_SIGNING_KEY", "").strip() or None,
src/kalshi_mcp_server/tools/scoring.py, line 195
self.api_key = (os.environ.get("TYPESAFE_API_KEY") or "").strip()
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Note
a file was over the read cap and was not fully read.
OBFUSCATION_FILE_OVER_READ_CAP
uv.lock, line 1
version = 1
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit 01f3d34545c4. can reach a host that is not written as a fixed address. reads a credential or environment file. a file was over the read cap and was not fully read.
Date and source
Date checked:
github.com
Commit graded: 01f3d34545c49eec4256e53f6349b94acdd540d1
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.