SecureMCP Agent Hub
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SecureMCP Agent HubFind customer Asha, show her orders, and retrieve the refund policy."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SecureMCP Agent Hub 🔐🤖
An end-to-end reference project showing how an AI agent can securely retrieve enterprise data, call multiple MCP tools, enforce permissions, request human approval, and write auditable workflow events.
Why this project exists
Most agent demos focus on tool calling but skip identity, least privilege, tenant isolation, approvals, auditability, and prompt-injection controls. SecureMCP Agent Hub makes those concerns visible in a runnable starter.
Related MCP server: ParcelPilot MCP Server
Highlights
MCP server exposing tools and resources
Claude-powered agent with deterministic demo fallback
Multi-tool workflows across customer, order, document, and ticket data
API-key authentication and tenant-scoped RBAC
Read-only vs approval-required tool policy
Human approval queue for consequential actions
Audit events for every tool decision and execution
Basic untrusted-content and prompt-injection screening
FastAPI REST gateway and Swagger UI
SQLite locally, PostgreSQL-ready configuration
Docker, tests, GitHub Actions, security policy, and contribution guide
Safety boundary
This is an educational reference architecture, not a production-certified enterprise platform. It uses synthetic seed data. Before production, add your identity provider, OAuth/OIDC, managed secrets, row-level database security, immutable audit storage, rate limits, recovery plans, formal threat modelling, and independent security review.
Architecture
flowchart LR
U[User / Enterprise App] -->|API key + tenant + role| API[FastAPI Gateway]
API --> AG[Agent Orchestrator]
AG --> PE[Policy Engine]
PE -->|allowed| MC[MCP Client]
PE -->|approval required| AQ[Approval Queue]
MC --> MS[MCP Tool Server]
MS --> DB[(Tenant Data)]
AG --> CL[Claude API optional]
API --> AU[(Audit Events)]Tools
search_customers: read-only customer searchget_customer_orders: read-only order retrievalsearch_knowledge: read-only document retrievalget_support_tickets: read-only support retrievalcreate_support_ticket: write operation requiring approvalexport_customer_snapshot: sensitive export requiring admin approval
Quick start
cp .env.example .env
docker compose up --buildOpen:
REST docs: http://localhost:8000/docs
Health: http://localhost:8000/health
Local Python:
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python -m app.seed
uvicorn app.api:app --reloadRun the MCP server independently:
python -m app.mcp_serverInspect it:
fastmcp dev app/mcp_server.pyDemo headers
X-API-Key: change-me
X-Tenant-ID: acme
X-Role: analyst
X-Actor-ID: sujalRoles: viewer, analyst, operator, admin.
Ask the agent
curl -X POST http://localhost:8000/v1/agent/run \
-H 'Content-Type: application/json' \
-H 'X-API-Key: change-me' \
-H 'X-Tenant-ID: acme' \
-H 'X-Role: analyst' \
-H 'X-Actor-ID: sujal' \
-d '{"request":"Find customer Asha, show her orders, and retrieve the refund policy."}'The deterministic fallback understands demo intents. Add ANTHROPIC_API_KEY for Claude-driven planning.
Approval workflow
An agent requests a write or sensitive tool.
The policy engine returns
approval_required.The API stores a pending approval instead of executing the tool.
An admin approves or rejects it.
Approved tools are executed explicitly through the approval endpoint.
Security design
Credentials only in headers, never query strings
Constant-time API-key comparison
Tenant ID bound to every data query
Role checks before tool execution
Explicit allowlist of tools and arguments
Size limits and validation through Pydantic
Read/write/destructive metadata in one policy registry
Human approval for writes and exports
Audit entries for allow, deny, request, approve, reject, execute
Responses label retrieved documents as untrusted data
No arbitrary SQL, shell, file, or URL tools
Test
pytest -q
ruff check .Suggested GitHub topics
mcp model-context-protocol ai-agents tool-calling claude fastapi rbac agentic-ai python enterprise-ai llm-security
Roadmap
OAuth2/OIDC and JWKS validation
PostgreSQL row-level security
Remote MCP with OAuth
OpenTelemetry traces and metrics
RAG with vector and lexical retrieval
Policy-as-code integration
Signed approval receipts
Web console for workflows and audit events
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Let AI agents query data and act across all your business apps via MCP.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Human-in-the-loop review and approval for AI agents. Audit trail, approval policies, native MCP.
Related MCP Servers
AlicenseNot gradedqualityAmaintenanceEnables AI agents to securely call MCP tools with risk scoring, checkpoints, rollback, and approval workflows.17MIT- FlicenseNot gradedqualityCmaintenanceEnables AI agents to retrieve customer, order, ticket, policy, and agreement information, and to prepare or execute state-changing support actions like escalations and follow-ups with confirmation and access control.
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to safely call enterprise tools through a governed MCP gateway with permission enforcement, blast-radius controls, input validation, and a full audit trail for every invocation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely access and act on CRM, order, support, and automation systems through the Model Context Protocol, with authentication, authorization, audit logging, and guardrails.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sgt-9304/SecureMCP-Agent-Hub'
If you have feedback or need assistance with the MCP directory API, please join our Discord server