AI Agent Access Control: Read-Only Search with Manticore A reproducible lab published by Manticore Search shows that connecting the official Manticore MCP server (commit c835b5c, package version 0.1.2) to a database account granted only `read` on the `agent_docs` table blocks tested INSERT, UPDATE, DELETE, DROP and TRUNCATE requests and denies access to the `private_docs` table, while the same read grant still exposes other tenants' rows within `agent_docs`. The lab runs on Manticore 29.9.0 with FastMCP 4.1.4 and the `manticoresearch` 11.2.0 client, tests reads and attempted writes through both MCP and direct HTTP, and repeats the checks after a restart, ending with "PASS: reads allowed; mutations denied; data and schema unchanged." The result matters because it separates three access-control layers — an MCP query guard that does not enforce read-only SQL, a database grant that does not isolate tenants, and an agent host's tool allowlist that does not change database permissions — and shows the database grant alone leaves cross-tenant rows visible. An agent answering questions from documentation needs search access, not permission to edit data. This example connects the official Manticore MCP server with a database account that can read one table, then tests what that account can and cannot do. We run reads and attempted writes through MCP and direct HTTP, compare the data and schema before and after, and repeat the checks after a restart. The read grant also exposes other tenants' rows in the same table. A small test client sends the MCP requests. You don't need a live LLM or model credentials to reproduce the results. The Access Boundary If you've followed our MCP introduction https://manticoresearch.com/blog/mcp-manticore-server/ or authentication guide https://manticoresearch.com/blog/how-to-secure-manticore-search-with-authentication-authorization/ , this lab shows how to use them together with a restricted account. The lab uses two tables: - agent docs : three documentation records, one belonging to a second tenant. - private docs : an internal runbook that the agent cannot read. The MCP server connects with a user that has one grant: CREATE USER 'agent docs' IDENTIFIED BY 'DemoReader05 '; GRANT read ON 'agent docs' TO 'agent docs'; The administrator creates the tables and the read-only user. Only the restricted credentials reach the MCP process; the password shown here is for this disposable lab. Manticore's authentication and authorization reference https://manual.manticoresearch.com/Security/Authentication and authorization explains its action and target permissions. AI agent access control here has three layers worth keeping separate: | Control | What It Does | Limit | |---|---|---| | MCP query guard | Blocks the tested INSERT, UPDATE, DELETE, DROP and TRUNCATE requests | Does not enforce read-only SQL | | Database grant | Allows reads on agent docs ; denies the tested writes and access to private docs | Does not isolate tenants within agent docs | | Tool selection in an agent host | Limits which tools the agent sees | Does not change database permissions | This lab tests the MCP guard and the database grant, not the agent host's tool allowlist. A Reproducible Lab Download the runnable example https://manticoresearch.com/downloads/agent-read-only-search.tar.gz . It contains Compose files, the unmodified official MCP source and license, pinned Python packages, a protocol test client check.py , and checksums. The example uses Manticore 29.9.0 https://github.com/manticoresoftware/manticoresearch/releases/tag/release-29.9.0 , pinned to this image digest: manticoresearch/manticore:29.9.0@sha256:461b419739a2bbbffb4be0b32db26c41d7b435bf7fd1fce95b414ca5ccbb3775 The engine reported 29.9.0 58e88d5ab@26091108 . We used official MCP commit c835b5c https://github.com/manticoresoftware/mcp-manticore/tree/c835b5c5bd8d50f6ee76969d5c277967660501aa package version 0.1.2 , FastMCP 4.1.4 , and manticoresearch 11.2.0 . Retest if you upgrade any of them. The tested platform is Linux amd64. You'll also need Docker Engine with Compose v2, Bash, Python 3, uv https://docs.astral.sh/uv/ , tar , and sha256sum . The first run may download an image, Python 3.12, and packages. No embedding model or API key is needed. The Compose project is manticore-article05 . The runner checks for existing project resources and a free port. The database binds to 127.0.0.1:39508 and has a one-CPU, 1-GiB limit; Python and downloads use additional host resources. Run only one copy at a time. Download the archive and its checksum file https://manticoresearch.com/downloads/agent-read-only-search.tar.gz.sha256 , then run: sha256sum -c agent-read-only-search.tar.gz.sha256 mkdir agent-search-lab tar -xzf agent-read-only-search.tar.gz -C agent-search-lab cd agent-search-lab sha256sum -c SHA256SUMS ./run.sh run.log 2 &1 tail -1 run.log The last line should be: PASS: reads allowed; mutations denied; data and schema unchanged We verified the archive from a fresh extraction and a new database volume. The runner refuses to reuse a lab volume. The checksums cover downloaded files, not external package repositories. Retrieval Through the Official MCP Server The runner sets auth = 1 and starts a standalone RT node. It bootstraps the administrator as the container's manticore OS user so the daemon can read its private auth store. The administrator then loads the fixtures and creates the restricted user. Next, the MCP process starts over stdio with: MANTICORE HOST=127.0.0.1 MANTICORE PORT=39508 MANTICORE USER=agent docs MANTICORE PASSWORD=DemoReader05 MANTICORE ALLOW WRITE ACCESS=false MANTICORE ALLOW DROP=false MANTICORE MCP TRANSPORT=stdio In your agent host, launch mcp-manticore with these settings. Stdio does not open an MCP listening port. Remote MCP connections need separate transport and authentication controls; HTTP/SSE transport is not tested here. The tools/list response contains five tools: run query list tables describe table list documentation get documentation This version calls the SQL tool run query , not the execute query name used in our introductory post. The tests use the database tools, not the documentation tools. Start by listing tables, inspecting a schema, and running a query. Here, list tables showed agent docs but not private docs . describe table returned the agent docs schema and denied access to private docs . It builds DESCRIBE