Supports interaction with the MCP server's REST API endpoints using curl commands for creating and retrieving messages
Provides interactive API documentation through Swagger UI, allowing users to explore and test the MCP server's endpoints at http://localhost:8000/docs
Python Project
This is a Python project template with a basic structure.
Project Structure
Setup
Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txt
Running the Project
To run the project:
Development
Add your Python code in the
srcdirectoryAdd new dependencies to
requirements.txtUpdate this README as needed
MCP Server with Oracle Database Integration
This is a Message Control Protocol (MCP) server implementation that provides a REST API for message handling with Oracle Database integration using ODBC.
Prerequisites
Python 3.8 or higher
Oracle Client installed and configured
ODBC Driver for Oracle installed
Installation
Clone the repository
Install the required dependencies:
Configure the database connection:
Update the database settings in
config.pyMake sure your Oracle ODBC driver is properly configured
Database Setup
Create the messages table in your Oracle database:
Running the Server
Start the server with:
The server will start on http://localhost:8000 by default.
API Endpoints
POST /messages/- Create a new messageGET /messages/- Retrieve all messagesGET /health- Health check endpoint
API Documentation
Once the server is running, you can access the interactive API documentation at:
Swagger UI: http://localhost:8000/docs
ReDoc: http://localhost:8000/redoc
Example Usage
Create a new message:
Get all messages:
Error Handling
The server includes comprehensive error handling for:
Database connection issues
Query execution errors
Invalid input data
Server health monitoring
Security Considerations
Update the default configuration in
config.pywith your secure credentialsConsider implementing authentication and authorization
Use HTTPS in production
Implement rate limiting for production use
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A REST API server implementation for message handling with Oracle Database integration via ODBC, offering endpoints for creating and retrieving messages with comprehensive error handling.
Related MCP Servers
- -security-license-qualityA Model Context Protocol server that provides standardized interfaces for interacting with Ollama API, offering JSON responses, error handling, and intelligent guidance for LLM-based API calls.Last updated -MIT License
- -security-license-qualityA Model Context Protocol Server that enables LLMs to interact with Oracle Database by providing database tables/columns as context, allowing users to generate SQL statements and retrieve results using natural language prompts.Last updated -31Apache 2.0
- -security-license-qualityServer that enables integration with Microsoft Business Central through its REST API, providing functionality for customer and product management, sales orders, and generic API interactions.
- -security-license-qualityA Model Context Protocol server that provides contextual Oracle database schema information, enabling AI assistants to understand and work with large databases containing thousands of tables.Last updated -2MIT License