PromptisePromptise
PlatformSoonEnterprise
DocsGitHub
Talk to usGet started
Promptise - AI Framework LogoPromptise

The full-stack framework for agentic systems. Build with the framework. Run it on the platform. Launch it with our engineers.

pip install promptise

[01] Product

  • Framework
  • Platform (coming soon)
  • Enterprise
  • How it works
  • Contact

[02] Framework

  • The Agent
  • The Interface
  • The Harness

[03] Resources

  • Documentation
  • GitHub
  • Why Promptise
  • Use cases
  • Roadmap
  • Guides
  • Learning Paths
  • Questions

[04] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

hello@promptise.com
← Guides> Library> Topic

Authentication and access control for AI agents and MCP servers

When an agent calls tools on behalf of users, two questions matter on every request: who is calling, and what are they allowed to do. Authentication answers the first, with API keys, signed JWTs or OAuth. Authorization answers the second, with roles and scopes checked on each tool, so an agent acting for one user cannot reach another user's data.

Agents increasingly need an identity of their own, presented as short-lived credentials rather than shared secrets. These guides cover adding API keys, JWT and OAuth to MCP servers, building an authenticated server for an agent, giving agents verifiable identities, keeping tenants apart, access control in retrieval systems, and an MCP security checklist.

20
guides
1
Beginner
10
Intermediate
9
Advanced
6 h
of reading

Start here

AI Agent With Its Own Account: How to Work With One

What it means when an AI agent has its own work account, email and calendar, how it differs from an assistant on your login, and how to work with one.

Beginner · 12 minRead the guide →

19 guides

  1. 01How to Revoke an AI Agent's Credentials: Incident StepsHow to revoke an AI agent's credentials: stop the agent, revoke API keys, OAuth tokens, cloud roles and MCP keys, end sessions, verify and audit.Intermediate · 18 minGuardrails and securityIntermediate · 18 minGuardrails and security→
  2. 02Per-User Agent Memory Isolation: Stop Leaks Between UsersWhy shared AI agent memory leaks between users, how per-user scopes and role-gated team notes stop it, and a canary test that proves the isolation works.Intermediate · 18 minMemory, context and RAGIntermediate · 18 minMemory, context and RAG→
  3. 03Make Your SaaS Agent-Ready: MCP, OpenAPI or BothMake your SaaS agent-ready: when to ship an MCP server, an OpenAPI spec or both, what to expose to agents, how auth works, and a runnable example.Intermediate · 18 minTools and the Model Context Protocol (MCP)Intermediate · 18 minTools and the Model Context Protocol (MCP)→
  4. 04FastMCP Alternatives for Production MCP Servers (2026)FastMCP alternatives compared: the official MCP Python and TypeScript SDKs, Promptise Foundry and more, for auth, multi-tenancy, observability and deploys.Intermediate · 16 minTools and the Model Context Protocol (MCP)Intermediate · 16 minTools and the Model Context Protocol (MCP)→
  5. 05MCP Middleware for Servers: Auth, Logging, Rate LimitsMCP middleware adds auth, audit logs, rate limits, caching and timeouts to every tool call. How the pipeline and ordering work in FastMCP and Promptise.Intermediate · 18 minTools and the Model Context Protocol (MCP)Intermediate · 18 minTools and the Model Context Protocol (MCP)→
  6. 06AI Agent Secrets Management: Scoped, Expiring CredentialsManage AI agent secrets safely: scope credentials per agent, expire and rotate them, keep them out of prompts and logs, and audit each access. Real output.Intermediate · 17 minRuntime, triggers and deploymentIntermediate · 17 minRuntime, triggers and deployment→
  7. 07AI Agent Control API: Manage Running Agents Over HTTPManage running AI agents over HTTP: deploy, stop and restart them, patch budgets and prompts, send messages, and secure the API. Real curl calls.Intermediate · 20 minRuntime, triggers and deploymentIntermediate · 20 minRuntime, triggers and deployment→
  8. 08Build an Authenticated MCP Server for Your AI Agent (Python)An MCP server authentication tutorial in Python: JWT login and roles, an agent that acts for each user, an attack script and a verified audit log.Intermediate · 25 minTools and the Model Context Protocol (MCP)Intermediate · 25 minTools and the Model Context Protocol (MCP)→
  9. 09MCP Security Best Practices: A Checklist for MCP ServersMCP security best practices as a checklist: token audience binding, per-tool scopes, input validation, human approval, rate limits and signed audit logs.Intermediate · 20 minTools and the Model Context Protocol (MCP)Intermediate · 20 minTools and the Model Context Protocol (MCP)→
  10. 10Build a Production MCP Server in Python (Step by Step)Build an MCP server in Python ready for real agents: typed tools, clear errors, API keys with roles, rate limits, a tamper-evident audit log and tests.Intermediate · 18 minTools and the Model Context Protocol (MCP)Intermediate · 18 minTools and the Model Context Protocol (MCP)→
  11. 11SPIFFE vs AWS IAM Roles vs Entra ID for AI AgentsSPIFFE vs AWS IAM roles vs Entra ID for AI agents: what an SVID is, how each gives an agent its own identity, and how to federate them, with runnable code.Advanced · 18 minGuardrails and securityAdvanced · 18 minGuardrails and security→
  12. 12Policy as Code for AI Agent Tool Calls: OPA vs ApprovalPolicy as code for AI agent tool calls: when deterministic rules beat human approval or model judgment, and how to check each call with OPA before it runs.Advanced · 20 minHuman approvals (human-in-the-loop)Advanced · 20 minHuman approvals (human-in-the-loop)→
  13. 13LangChain Multi-Tenant Isolation: Tenants, Quotas, MemoryLangChain multi-tenant isolation: what LangChain and LangGraph provide, what you build yourself, per-tenant rate limits and quotas, and the Promptise way.Advanced · 20 minGuardrails and securityAdvanced · 20 minGuardrails and security→
  14. 14On-Behalf-Of Auth for AI Agents: Act as Each UserHow AI agents act on behalf of each user: OAuth token exchange (RFC 8693), audience-bound tokens, the act claim, and a runnable MCP example with output.Advanced · 22 minGuardrails and securityAdvanced · 22 minGuardrails and security→
  15. 15SPIFFE for AI Agents: Workload Identity Without API KeysUse SPIFFE and SPIRE for AI agent identity: X.509 vs JWT-SVIDs, calling APIs and MCP servers, cloud workload identity compared, with runnable code.Advanced · 20 minGuardrails and securityAdvanced · 20 minGuardrails and security→
  16. 16MCP Authentication in Python: API Keys, JWT and OAuthMCP authentication in Python on one server: API keys, JWTs and OAuth client credentials with JWKS, plus roles, scopes, 401s and agent token forwarding.Advanced · 20 minTools and the Model Context Protocol (MCP)Advanced · 20 minTools and the Model Context Protocol (MCP)→
  17. 17AI Agent Identity: Authenticate Agents to MCP ServersGive your AI agent its own verifiable identity: short-lived JWTs from your IdP, checked by MCP servers with JWKS. Real runs, refresh and honest limits.Advanced · 22 minTools and the Model Context Protocol (MCP)Advanced · 22 minTools and the Model Context Protocol (MCP)→
  18. 18Multi-Tenant AI Agents: Keep Each Customer's Data ApartBuild a multi-tenant AI agent in Python: per-user tokens, tenant-scoped MCP tools and isolated sessions, with runs proving one tenant can't read another.Advanced · 18 minTools and the Model Context Protocol (MCP)Advanced · 18 minTools and the Model Context Protocol (MCP)→
  19. 19RAG Security: Stop Poisoned Documents and Prompt InjectionSecure a RAG pipeline: stop poisoned documents and indirect prompt injection, filter retrieval by permission, mark context, check answers. Real examples.Advanced · 10 minLLM SecurityAdvanced · 10 minLLM Security→

Related topics

  • Model Context Protocol (MCP)54
  • Deployment40
  • Multi-Tenancy8
  • Audit Logging and Monitoring10
  • Agent Memory9
  • AI Agent Frameworks13
  • Human-in-the-Loop27
  • Observability24

Topic hubs

  • Tools and the Model Context Protocol (MCP)→
  • Guardrails and security→
  • Runtime, triggers and deployment→
  • Frameworks and comparisons→

By category and level

  • AI Engineering guides147
  • AI at Work guides18
  • LLM Security guides10
  • Beginner guides75
  • Intermediate guides140
  • Advanced guides38

Search every guide.

The library lists all guides with filters for topic, level, category and reading time.

All guidesLearning paths