MCP, MCP server
BTCFi API
Bitcoin Intelligence API for AI Agents
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 NETWORK_UNNAMED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ
Why this grade
- NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
chrome-extension/background.js, line 18
const res = await fetch(`${api}/api/v1/fees`); - NETWORK_UNNAMED_HOST Low
Calls a fixed host that the description does not name.
chrome-extension/background.js, line 18
const res = await fetch(`${api}/api/v1/fees`); - SECRETS_PATH_DOTENV Low
Mentions a .env file.
scripts/telegram-bot-webhook.ts, line 13
dotenv.config({ path: '.env.local' }); - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
examples/realtime-whale-alert.ts, line 12
evmPrivateKey: process.env.EVM_PRIVATE_KEY,
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. can reach api.telegram.org. The description does not name that host. can reach mempool.space. The description does not name that host. can reach blockstream.info. The description does not name that host. can reach api.llama.fi. The description does not name that host. can reach 1ml.com. The description does not name that host.
NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST
chrome-extension/background.js, line 18
const res = await fetch(`${api}/api/v1/fees`);
chrome-extension/background.js, line 43
const res = await fetch(`${api}/api/v1/intelligence/whales`);
chrome-extension/content.js, line 45
const res = await fetch(`${API}/api/v1/safe?addr=${encodeURIComponent(addr)}`);
Show more
chrome-extension/popup.js, line 7
fetch(`${API}/api/v1/fees`).then(r => r.json()),
chrome-extension/popup.js, line 8
fetch(`${API}/api/v1/mempool`).then(r => r.json()),
hf-space/app.py, line 78
resp = requests.get(url, timeout=15)
mcp/src/index.ts, line 395
let response = await fetch(url, options);
mcp/src/index.ts, line 454
response = await fetch(url, { ...options, headers });
src/app/page.tsx, line 279
curl https://btcfi.aiindigo.com/api/v1/fees
src/app/docs/page.tsx, line 70
curl https://btcfi.aiindigo.com/api/health
src/app/docs/page.tsx, line 73
curl https://btcfi.aiindigo.com/api/v1/fees
src/app/docs/page.tsx, line 128
curl -X POST https://btcfi.aiindigo.com/api/admin/api-keys \\
src/app/docs/page.tsx, line 138
curl -X DELETE https://btcfi.aiindigo.com/api/admin/api-keys \\
src/app/docs/page.tsx, line 326
curl -X POST https://btcfi.aiindigo.com/api/v1/portfolio \\
src/app/docs/page.tsx, line 331
curl https://btcfi.aiindigo.com/api/v1/portfolio/alice
src/app/docs/page.tsx, line 334
curl https://btcfi.aiindigo.com/api/v1/portfolio/alice/analytics`}</div>
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
examples/realtime-whale-alert.ts, line 12
evmPrivateKey: process.env.EVM_PRIVATE_KEY,
examples/zk-trust-proof.ts, line 12
evmPrivateKey: process.env.EVM_PRIVATE_KEY,
scripts/telegram-bot-webhook.ts, line 13
dotenv.config({ path: '.env.local' });
Show more
mcp/src/index.ts, line 401
const hasEvmKey = !!process.env.EVM_PRIVATE_KEY;
mcp/src/index.ts, line 402
const hasSvmKey = !!process.env.SVM_PRIVATE_KEY;
mcp/src/index.ts, line 423
process.env.EVM_PRIVATE_KEY!,
scripts/telegram-bot-webhook.ts, line 25
const SECRET_TOKEN = process.env.TELEGRAM_SECRET_TOKEN || '';
scripts/telegram-bot-webhook.ts, line 82
console.log(`[BTCFi Bot] Token set: ${!!process.env.TELEGRAM_BOT_TOKEN}`);
sdk/src/index.ts, line 42
* evmPrivateKey: process.env.EVM_PRIVATE_KEY, // Base USDC
.env.example, line 2
# Copy to .env.local and fill in values
.gitignore, line 2
.next/
.gitignore, line 3
.env
.gitignore, line 4
.env.local
.gitignore, line 9
.vercel
CONTRIBUTING.md, line 19
cp .env.example .env
CONTRIBUTING.md, line 20
# Edit .env with your local values
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
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 a8e957ca089b. can reach a host that is not written as a fixed address. can reach api.telegram.org. The description does not name that host. can reach mempool.space. The description does not name that host. can reach blockstream.info. The description does not name that host. can reach api.llama.fi. The description does not name that host. can reach 1ml.com. The description does not name that host. reads a credential or environment file.
Date and source
Date checked:
github.com
Commit graded: a8e957ca089b4c12d5fd57648a79c9cdc2129f03
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.