{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "masumedb-masume--let-agent-query-database-via-mcp",
 "repo": "masumedb/masume",
 "repo_url": "https://github.com/masumedb/masume",
 "repo_slug": "masumedb-masume",
 "title": "Let an external agent query allowed databases over MCP",
 "page_title": "How to let an external agent query allowed databases over MCP with Masume",
 "summary": "Serve chosen profiles to an agent over stdio with an access level per profile.",
 "who": "An engineer who wants an AI agent to answer questions about a database, and who must limit what the agent can touch.",
 "problem": "Giving an agent direct database credentials with no limits is risky, and copying data by hand is slow.",
 "outcome": "The agent reads from allowed profiles through Masume, and writes are limited by the access level you set.",
 "steps": [
  "Enable the profile for MCP in the settings screen or config, as described in docs/mcp.md",
  "Run `masume --mcp --check` to check the enabled MCP profiles",
  "Run `masume --mcp --profile <profile>` to serve one allowed profile (inferred, check the README)",
  "Point your agent at the stdio server and confirm it lists the database tools"
 ],
 "agent_prompt": "Using the masume MCP server for profile <profile>, list the tables and report the row count of <table>. Expected output: a table list and one integer. Verify the count by running a matching count query in masume yourself.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Read-only checks run in the client and on engines that support server-side enforcement, so confirm the level in docs/mcp.md for your engine.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "A terminal on macOS, Linux, or Windows",
  "A database you can reach, or a local SQLite file",
  "One install method: Homebrew, npm, Go 1.27 or later, or a release package"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The MCP server opens its own database connections, so each profile needs its access level and password source checked before an agent is connected."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/masumedb-masume/let-agent-query-database-via-mcp/",
 "md": "https://dedupedai.com/use-cases/masumedb-masume/let-agent-query-database-via-mcp/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/masumedb-masume--let-agent-query-database-via-mcp.json",
 "api_version": "v1"
}
