Enterprise MCP Server
Allows generating AI responses using OpenAI as a configured provider through the AI generation tool.
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., "@Enterprise MCP ServerCheck database health and list recent audit logs"
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.
Enterprise MCP Server
A modular, security-focused Model Context Protocol (MCP) server that exposes enterprise-ready tools, prompts, and resources through a unified MCP interface.
๐ Project Overview
The Enterprise MCP Server is a Python-based MCP server built with FastMCP.
It provides a single interface for interacting with:
๐ Filesystem operations
๐๏ธ Database operations
๐ REST APIs
๐ฅ๏ธ System utilities
๐ค AI generation
๐ฌ Reusable MCP prompts
๐ MCP resources
The project follows a layered architecture with dedicated tools, services, validation, permission management, configuration, logging, and persistence components.
The implementation also includes database audit logging, SQL safety validation, explicit database execution permissions, authentication/authorization controls, and automated testing.
Related MCP server: AX Local Operations MCP Server
๐ Project Status
Status: โ Implementation Complete
Area | Status |
MCP Server | โ Complete |
Tool Registry | โ Complete |
Filesystem Tools | โ 5 tools |
Database Tools | โ 3 tools |
REST API | โ 1 tool |
System Utilities | โ 4 tools |
AI Integration | โ 1 tool |
MCP Prompts | โ 3 prompts |
MCP Resources | โ 3 resources |
Database Persistence | โ Complete |
Audit Logging | โ Complete |
SQL Safety Validation | โ Complete |
Database Permission Policy | โ Complete |
Authentication / Authorization | โ Complete |
Automated Tests | โ 101 passed |
MCP Inspector Verification | โ Complete |
โจ Key Features
MCP Capabilities
FastMCP-based server
Idempotent server initialization
Centralized tool registry
14 registered MCP tools
3 reusable MCP prompts
3 MCP resources
Security
Authentication and authorization layer
Read/write database separation
Database execute permission control
SQL query validation
Multiple-statement rejection
Destructive SQL pattern rejection
Filesystem workspace restrictions
Environment-based secret management
Audit logging
Engineering
Layered architecture
Centralized configuration
Structured application logging
Service-layer separation
Pydantic request/response models
SQLAlchemy database integration
Automated unit and persistence tests
MCP Inspector validation
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Client โ
โ / MCP Inspector โ
โโโโโโโโโโโโฌโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโ
โ FastMCP โ
โ Server โ
โโโโโโโโโโโโฌโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ Tools โ โ Prompts โ โ Resources โ
โโโโโโโโฌโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Tool Registry / Layer โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโ
โ Filesystem โ โ Database โ โ REST API โ
โ Service โ โ Service โ โ Service โ
โโโโโโโโโโโโโโ โโโโโโโฌโโโโโโโ โโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโ
โ SQLAlchemy โ
โโโโโโโฌโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโ
โ Database โ
โ audit_logs โ
โโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโ
โ AI Service โ
โ Provider Layer โ
โโโโโโโโโโโโโโโโโโโ๐งฉ MCP Tools
The server currently exposes 14 MCP tools.
๐ Filesystem Tools
Tool | Purpose |
| Read a file from the configured workspace |
| Write content to the configured workspace |
| List files/directories |
| Delete an allowed workspace file |
| Check whether a path exists |
๐๏ธ Database Tools
Tool | Purpose |
| Execute validated read-only SQL |
| Execute approved write/DDL SQL when permitted |
| Check database availability |
Database Query
Example:
{
"query": "SELECT id, request_id, tool_name, status FROM audit_logs WHERE request_id = 'req-sample-002'",
"parameters": {},
"timeout": 30,
"max_rows": 100
}Database Execute
Example:
{
"query": "CREATE TABLE IF NOT EXISTS mcp_test_table (id INTEGER PRIMARY KEY, message TEXT)",
"parameters": {},
"timeout": 30
}Database Execute Security
Database execution is intentionally controlled.
Default permission policy:
QUERY โ ALLOWED
EXECUTE โ DENIED BY DEFAULT
HEALTH โ ALLOWEDExecution can be explicitly enabled through:
DATABASE_ALLOW_EXECUTEThe SQL must still pass execute-query validation.
๐ REST API
Tool | Purpose |
| Perform a validated HTTP request through the REST API service |
The REST API layer handles request validation, timeout behavior, and HTTP error handling.
๐ฅ๏ธ System Utilities
Tool | Purpose |
| Return current system time |
| Return system information |
| Return disk usage information |
| Generate a cryptographic hash |
Hash Example
Input:
{
"algorithm": "sha256",
"input": "abc"
}Output:
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad๐ค AI
Tool | Purpose |
| Generate an AI response through the configured provider layer |
AI provider configuration is managed through environment variables.
๐ฌ MCP Prompts
The server provides 3 reusable MCP prompts.
Prompt | Purpose | Input |
| Structured system/server diagnostics | None |
| Analyze a database table | Table name |
| Investigate an operational incident | Incident description |
Database Analysis Example
audit_logsIncident Investigation Example
The database_query tool rejected a SELECT request with
UNSAFE_DATABASE_QUERY. Investigate whether the issue is
caused by SQL validation, permissions, or database availability.๐ MCP Resources
The server provides 3 resources:
Resource | Purpose |
| Server metadata |
| Registered tool information |
| Server/database health information |
๐๏ธ Database Architecture
The database layer uses SQLAlchemy.
The main application table is:
audit_logsAudit Log Schema
Column | Type | Description |
| INTEGER | Primary key |
| VARCHAR(100) | MCP request identifier |
| VARCHAR(100) | Client identifier |
| VARCHAR(100) | Executed tool |
| VARCHAR(100) | Operation performed |
| VARCHAR(50) | Execution status |
| TEXT | Optional details |
| DATETIME | Audit timestamp |
Example Audit Record
request_id : req-execute-test-001
client_id : client-001
tool_name : database_execute
operation : insert
status : success๐ Security Model
The project uses multiple security layers.
Client Request
โ
โผ
Authentication
โ
โผ
Authorization
โ
โผ
Input Validation
โ
โผ
Permission Policy
โ
โผ
Service Execution
โ
โผ
Audit Logging
โ
โผ
ResponseDatabase Query Security
database_query is read-only.
The validator rejects dangerous operations including:
INSERT
UPDATE
DELETE
DROP
ALTER
TRUNCATE
CREATE
GRANT
REVOKE
EXEC / EXECUTE
CALLMultiple SQL statements are also rejected.
Example rejected input:
SELECT 1; SELECT 2;The validator also protects against incorrectly interpreting SQL keywords contained inside quoted string values.
โ๏ธ Configuration
Application configuration is centralized in:
app/core/config.pyConfiguration is loaded from environment variables and .env.
Important settings include:
APP_NAME
APP_VERSION
APP_ENV
DEBUG
HOST
PORT
LOG_LEVEL
LOG_FILE
SECRET_KEY
DATABASE_URL
DATABASE_ALLOW_EXECUTE
AI_PROVIDER
GROQ_API_KEY
ANTHROPIC_API_KEY
GEMINI_API_KEY
OPENAI_API_KEY
HTTP_TIMEOUT
MAX_RETRIESโ ๏ธ Secrets
Never commit:
.env
API keys
database credentials
secret keysUse .env.example for safe configuration documentation.
๐ฆ Project Structure
enterprise-mcp-server/
โ
โโโ app/
โ โ
โ โโโ core/
โ โ โโโ config.py
โ โ โโโ constants.py
โ โ โโโ logger.py
โ โ โโโ ...
โ โ
โ โโโ database/
โ โ โโโ models.py
โ โ โโโ session.py
โ โ โโโ ...
โ โ
โ โโโ server/
โ โ โโโ mcp_server.py
โ โ โโโ registry.py
โ โ โโโ prompts.py
โ โ โโโ resources.py
โ โ
โ โโโ services/
โ โ โโโ database_service.py
โ โ โโโ filesystem_service.py
โ โ โโโ rest_api_service.py
โ โ โโโ ...
โ โ
โ โโโ tools/
โ โโโ ai/
โ โโโ database/
โ โโโ filesystem/
โ โโโ rest_api/
โ โโโ system/
โ
โโโ tests/
โ โโโ unit/
โ โโโ integration/
โ
โโโ docs/
โ โโโ api.md
โ โโโ architecture.md
โ โโโ database.md
โ โโโ deployment.md
โ โโโ security.md
โ โโโ tool-reference.md
โ
โโโ data/
โโโ logs/
โ
โโโ .env.example
โโโ .gitignore
โโโ pyproject.toml
โโโ README.md๐ ๏ธ Installation
1. Clone the Repository
git clone <your-repository-url>
cd enterprise-mcp-server2. Create Virtual Environment
Windows
python -m venv .venv
.venv\Scripts\Activate.ps1Linux / macOS
python -m venv .venv
source .venv/bin/activate3. Install Dependencies
Install the dependencies defined by the project configuration.
4. Configure Environment
Copy:
.env.exampleto:
.envThen configure the required values.
โถ๏ธ Running the Server
The primary server module is:
app/server/mcp_server.pyVerify Server Initialization
python -c "from app.server.mcp_server import initialize_server; initialize_server(); print('Server initialization successful')"Expected final message:
MCP server initialized successfully.
Server initialization successfulStart the Server
Run the server using the project's configured server command.
๐งช Testing
Run the complete test suite:
pytest -vFinal Verified Result
101 passedThe test suite covers areas including:
Safe database queries
Unsafe query rejection
Multiple SQL statement rejection
Database permission policy
Execute permission behavior
Database configuration
Query result serialization
Database persistence
Audit logging
Authentication
Authorization
Tool behavior
Service behavior
๐ MCP Inspector Verification
The project was tested using MCP Inspector.
Verification includes:
Tools
14 toolsPrompts
3 promptsResources
3 resourcesThe Inspector was used to verify operations including:
database_querydatabase_executedatabase_healthai_generaterest_api_requestsystem utilities
๐งพ Example End-to-End Database Workflow
1. Create a test table
{
"query": "CREATE TABLE IF NOT EXISTS mcp_test_table (id INTEGER PRIMARY KEY, message TEXT)",
"parameters": {},
"timeout": 30
}2. Insert a record
{
"query": "INSERT INTO mcp_test_table (message) VALUES ('MCP test record')",
"parameters": {},
"timeout": 30
}3. Query the record
{
"query": "SELECT id, message FROM mcp_test_table",
"parameters": {},
"timeout": 30,
"max_rows": 100
}This demonstrates the complete:
Execute โ Persist โ Queryworkflow.
๐ Project Metrics
Metric | Result |
MCP Tools | 14 |
MCP Prompts | 3 |
MCP Resources | 3 |
Test Cases | 101 passed |
Database Tables |
|
Tool Families | 5 |
Architecture | Layered / Modular |
๐ Documentation
Detailed documentation is available in the docs/ directory:
๐ง Future Improvements
The current implementation is complete for the project scope.
Potential future enhancements:
Production database migrations
PostgreSQL deployment
Docker / container deployment
CI/CD pipeline
Metrics and distributed tracing
More granular per-client database permissions
Parameterized MCP resource templates
Expanded integration testing
Production monitoring
Additional AI provider abstractions
These are optional extensions rather than current project requirements.
๐ฏ What This Project Demonstrates
This project demonstrates practical experience with:
Model Context Protocol
FastMCP
Python backend architecture
API/service design
Database engineering
SQL security
Permission systems
Authentication and authorization
Audit logging
REST API integration
AI integration
Environment-based configuration
Automated testing
MCP Inspector
Modular software design
๐ค Author
ILA
Enterprise MCP Server โ modular MCP tooling, security controls, database integration, AI integration, prompts, resources, and automated testing.
๐ License
Add the project's intended license here before publishing the repository publicly.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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
Nifty's MCP server โ exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA unified MCP server with composable tools for GitHub operations, file management, shell execution, kanban boards, Discord messaging, and package management. Features role-based security, HTTP/stdio transports, and a web-based development UI.-
- AlicenseAqualityDmaintenanceA comprehensive MCP server that enables AI models to perform local file operations, command execution, and task management across multiple platforms. It features advanced capabilities like row-level file editing, directory searching, and system monitoring with built-in security filters.1313Mulan Permissive Software , Version 2
- AlicenseNot gradedqualityDmaintenanceA production-grade MCP server designed for multi-tenant, authenticated, and observable AI agent systems, enabling secure tool execution across heterogeneous data sources.62MIT
- FlicenseNot gradedqualityBmaintenanceGeneral-purpose MCP server with built-in tools for HTTP, JSON, and datetime operations, supporting pluggable modules and security defaults.-
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/Ilavarasan-v/enterprise-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server