Habr•September 22, 2026•🇷🇺Translated from Russian

How to Grant AI Agents Access to Internal APIs via MCP: Key Questions Security Teams Will Ask

When an AI agent gains the ability to invoke internal interfaces, the information security team immediately asks three questions: who issued the access, how to revoke it, and how to reconstruct an incident a month later. The answers come not from traffic inspection but from operation-level access management, a concept previously outlined in the article on MCP security for AI agents.

Standard interface controls apply: each tool is treated as a distinct operation rather than an entire system; operations are selected at publication time; every agent receives its own application with dedicated keys; limits are set on the subscription; revoking a single subscription does not affect the overall configuration; the log records the initiator; and access is granted by the resource owner after approval.

The material examines the mechanics on NEOMSA APIM MCP servers and provides a checklist of 15 checks that works regardless of the products in the environment. Technical details follow the Model Context Protocol Specification 2026–07-28.

Why MCP Is No Longer Experimental

In December 2025 Anthropic transferred MCP to the Agentic AI Foundation under the Linux Foundation. At that time the protocol recorded 97 million SDK downloads per month and more than 10,000 public servers. By July 2026 monthly downloads approached half a billion, with TypeScript and Python SDKs together exceeding one billion. MCP has become the de-facto standard for connecting AI agents to corporate systems.

Once tools include customer records, transaction history or limit calculations, the integration falls under corporate security responsibility. The article describes a typical zoned network where one support agent reads customer data and calculates limits while another helps staff modify those limits. Prototypes are built in a week, yet production rollout is blocked by architectural security requirements that become expensive to retrofit later.

Why Classic Traffic Filters Fail

Traffic inspection validates syntax, schema and absence of injections, but cannot decide whether the calling agent is authorized for that specific operation. Authentication confirms identity; authorization at the tool level is missing when an application receives overly broad rights. The two layers therefore address separate concerns and must both be enforced.

Publishing Tools: From API to MCP Operations

Agents do not call systems; they invoke named tools with strict data contracts. In NEOMSA APIM an MCP server can be created by importing an OpenAPI definition and selecting only the required operations, by reusing an already published API with its existing authentication and rate-limit settings, or by proxying an upstream MCP server. Only the chosen operations appear in tools/list; any attempt to call an unlisted tool by name is rejected at the gateway.

The example publishes two servers and three tools: customers_get (scope customers:read), limits_calculate (scope limits:calculate) and limits_update (scope limits:write). Tool descriptions are also security controls; vague names or loose schemas allow models to guess parameters, while poisoned descriptions can inject hidden instructions. Every change therefore requires review and versioning.

Issuing and Scoping Access

Before a token is issued, the resource owner must approve a subscription that lists the application, purpose, allowed operations, limits and review date. Each agent is represented by its own application with consumer key and secret. Multiple subscriptions with different plans can be attached to the same application, separating read and write privileges. Scopes are enforced at token issuance so that an application without the required role never receives a token that would allow the operation.

Identity propagation is handled either by a trusted header added after authentication or by OAuth 2.0 token exchange that preserves the delegation chain. Passing the original user token unchanged violates audience checks and is architecturally incorrect.

Rate Limits and Business Validation

Rate limits must be applied at the subscription level; otherwise a looping agent can exhaust shared quotas and affect other consumers. Final authorization decisions remain with the target service, which validates both the agent’s rights and the specific business object, preventing classic BOLA/IDOR issues and ensuring non-duplication through idempotency checks.

Related articles

Habr•AI Security

Why We Banned Our AI Manager from Writing Code and Assigned the Task to Claude Opus

The team behind an AI-powered marketplace manager for Wildberries initially built the system using regular updates, then migrated it to an autonomous agent. After implementing multiple layers of restrictions, they ultimately removed the agent entirely and rebuilt the solution from scratch. The new architecture relies on a single tool that handles the complete Wildberries API along with internet access while respecting all platform limits. The decision to prohibit the original AI manager from generating code stemmed from concerns over reliability and security in production environments. Instead, the developers turned to Claude Opus to handle coding tasks. This case highlights practical challenges of deploying AI agents in e-commerce automation and information security contexts.

Habr•AI Security

Developer Builds MCP Linter and Discovers Security Issues in Anthropic Official Servers

A developer has released mcp-linter, a lightweight security and compliance tool for the Model Context Protocol used by Anthropic's Claude ecosystem. The linter detects critical problems such as stdout pollution that breaks JSON-RPC framing, missing destructiveHint annotations that allow autonomous agents to execute dangerous actions without human confirmation, prompt injection vectors hidden inside tool descriptions, and incomplete input schemas that increase model hallucinations. When run against Anthropic's reference servers, the tool assigned low health scores to server-memory and especially server-filesystem, highlighting dozens of parameters lacking descriptions. The utility runs with zero dependencies, supports SARIF output for GitHub Security, and can generate automatic JSON patches. The project is open source under MIT license and already integrates into CI pipelines via a dedicated GitHub Action.

Habr•AI Security

Pentesting AI Components: Key Vulnerabilities CISOs Must Address in RAG and AI Agents

The article examines how AI integration into corporate systems dramatically expands the attack surface beyond traditional web application testing. It details risks associated with chatbots, RAG-enabled systems that pull from internal documents, and autonomous AI agents capable of executing real actions via APIs. Yuri Grishaev, an OSCP+ certified specialist and top Standoff 365 hacker, explains how prompt injection can bypass access controls and lead to data leaks or unauthorized operations. The piece stresses that service accounts often hold broad privileges, allowing AI components to serve as indirect paths to sensitive data even when direct user access is restricted. It also covers how AI-generated output can trigger classic vulnerabilities such as XSS if not properly sanitized. Recommendations include inventorying all AI tools, enforcing least-privilege principles, and validating user permissions before any model processes or acts on retrieved content. ABP2B provides free checklists and policy templates to help organizations prepare for secure AI adoption.

Habr•AI Security

Local LLMs Enable Scams by Drafting Fraudulent Replies Without Warnings

Tests on consumer hardware showed that popular 7-8B local models almost never flagged classic advance-fee schemes when asked to draft replies instead of detecting fraud. The author ran 42 scam scenarios across Russian, Kazakh and mixed language on Llama 3.1 8B, Qwen 2.5 7B and DeepSeek-R1 8B using only an RTX 5050 laptop and Ollama. Without additional controls the models produced ready-to-send messages agreeing to prepaid transfers to unknown Kaspi Gold numbers in nearly every case. Introduction of the MoneyGate layer, which combines a mandate check, a separate judge model and hard-coded red-flag rules, blocked all 42 malicious requests while still allowing most legitimate payments to proceed. The benchmark KZ Scam Shield covering 12 Kazakhstan-specific fraud patterns remains publicly available for further testing.