{"score":85,"grade":"B","scannedAt":"2026-12-05T23:02:59.218Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"@ansvar/bahraini-law-mcp","version":"1.0.0","license":"Apache-2.0","repository":"https://github.com/Ansvar-Systems/bahraini-law-mcp","firstPublished":"2026-02-28T17:17:40.757Z","lastPublished":"2026-02-28T17:17:41.257Z","versions":1,"maintainers":1,"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/bahraini-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu","files":137,"bytes":28792616,"hosts":["ansvar.eu","eur-lex.europa.eu","legalaffairs.gov.bh","www.legalaffairs.gov.bh"]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":false},"findings":[{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/scripts/build-db.js","line":253,"snippet":"fs.unlinkSync(DB_PATH);"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/scripts/census.js","line":26,"snippet":"import { execSync } from 'child_process';"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/scripts/census.js","line":53,"snippet":"execSync(`sleep ${ms / 1000}`);"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/scripts/census.js","line":111,"snippet":"execSync(`curl -s '${SEARCH_URL}' ` +"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/scripts/census.js","line":149,"snippet":"fs.writeFileSync(dataFile, postData);"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/scripts/census.js","line":191,"snippet":"fs.unlinkSync(dataFile);"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/scripts/check-updates.js","line":23,"snippet":"const MAX_DB_AGE_DAYS = Number(process.env['MAX_DB_AGE_DAYS'] ?? '90');"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dist/scripts/check-updates.js","line":36,"snippet":"const res = await fetch(url, {"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dist/scripts/drift-detect.js","line":28,"snippet":"const response = await fetch(hash.upstream_url, {"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dist/scripts/lib/fetcher.js","line":27,"snippet":"const response = await fetch(url, {"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/api/health.js","line":5,"snippet":"const SOURCE_DB = process.env[DB_ENV_VAR] || join(process.cwd(), 'data', 'database.db');"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/src/index.js","line":19,"snippet":"if (process.env[DB_ENV_VAR]) {"}],"vulns":[],"installScripts":[],"server":{"name":"eu.ansvar/bahraini-law-mcp","description":"Bahrain legislation via MCP -- full-text search across statutes and provisions","repository":"https://github.com/Ansvar-Systems/bahraini-law-mcp","version":"1.0.0"}}