Oracle Fusion AR MCP Server

Oracle Fusion AR MCP Server

Provides secure, remote access to the Oracle Fusion Cloud Accounts Receivable REST API for managing financial data. It enables users to list, search, and retrieve detailed invoice information through natural language commands without storing credentials.

Category
Visit Server

README

Oracle Fusion AR MCP Server ๐Ÿš€

A remote Model Context Protocol (MCP) server built in Python that provides secure access to Oracle Fusion Cloud Accounts Receivable REST API. Deploy once, share with everyone!

๐ŸŒŸ Key Features

  • ๐ŸŒ Remote MCP Server: Deploy to cloud and share via URL
  • ๐Ÿ”’ Secure: No credential storage, per-request authentication
  • ๐Ÿ“Š Three MCP Tools:
    • oracle_ar_list_invoices - List and filter invoices
    • oracle_ar_get_invoice_details - Get detailed invoice information
    • oracle_ar_search_invoices - Advanced search with statistics
  • ๐Ÿ“ Dual Output: Both JSON and human-readable Markdown
  • โšก Fast: Built with Python + uv + httpx (async)
  • โ˜๏ธ Cloud-Ready: One-click deploy to Railway, Render, Heroku

๐Ÿš€ Quick Deploy

Deploy to Railway (Recommended - Free Tier Available)

Deploy on Railway

  1. Click the button above or go to railway.app
  2. Connect your GitHub repository
  3. Set environment variable:
    • ORACLE_BASE_URL: https://fa-euth-dev46-saasfademo1.ds-fa.oraclepdemos.com
  4. Deploy! ๐ŸŽ‰

You'll get a URL like: https://oracle-ar-mcp-server-production.up.railway.app

Deploy to Render

Deploy to Render

  1. Click the button or go to render.com
  2. Connect your GitHub repository
  3. Render auto-detects configuration from render.yaml
  4. Deploy! ๐ŸŽ‰

Other Platforms

See DEPLOYMENT.md for detailed instructions for:

  • Heroku
  • Google Cloud Run
  • AWS ECS/Fargate
  • Azure Container Apps
  • Docker deployment

๐Ÿ“ก Connect to Your Deployed Server

Once deployed, anyone can connect using your server URL.

For Claude Desktop

Add to claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "oracle-ar-remote": {
      "url": "https://YOUR-APP-URL.railway.app/sse",
      "transport": "sse"
    }
  }
}

Test Your Deployment

# Health check
curl https://YOUR-APP-URL.railway.app/health

# Service info
curl https://YOUR-APP-URL.railway.app/

# Test SSE endpoint with MCP Inspector
npx @modelcontextprotocol/inspector --url https://YOUR-APP-URL.railway.app/sse

๐Ÿ“š API Documentation

Endpoints

  • GET / - Service information and available tools
  • GET /health - Health check endpoint
  • GET /sse - SSE endpoint for MCP connections
  • POST /messages - MCP message endpoint

MCP Tools

1. oracle_ar_list_invoices

List invoices with optional filtering and pagination.

Parameters:

{
  "username": "your-oracle-username",
  "password": "your-oracle-password",
  "customer_name": "Acme Corp",
  "date_from": "2024-01-01",
  "date_to": "2024-12-31",
  "status": "Open",
  "limit": 20,
  "offset": 0
}

2. oracle_ar_get_invoice_details

Get detailed information about a specific invoice.

Parameters:

{
  "username": "your-oracle-username",
  "password": "your-oracle-password",
  "invoice_id": "123456"
}

3. oracle_ar_search_invoices

Advanced search with filters and statistics.

Parameters:

{
  "username": "your-oracle-username",
  "password": "your-oracle-password",
  "filters": {
    "amountGreaterThan": 10000,
    "overdueDays": 30
  },
  "limit": 20
}

๐Ÿ› ๏ธ Local Development

Prerequisites

  • Python 3.10+
  • uv (recommended)
  • Oracle Fusion Cloud credentials

Setup

# Clone the repository
git clone https://github.com/YOUR_USERNAME/oracle-ar-mcp-server.git
cd oracle-ar-mcp-server

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create virtual environment and install dependencies
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
uv pip install -e ".[dev]"

# Create environment file
cp .env.example .env

Run Locally

# Run the server
uv run python -m src.server

# Server will start on http://localhost:3000

Run Tests

# Run all tests
uv run pytest

# Run with coverage
uv run pytest --cov=src

# Run linting
uv run ruff check src tests

# Run type checking
uv run mypy src

๐Ÿ”’ Security

โœ… Secure Design

  • No Credential Storage: Credentials are passed per-request only
  • Stateless: No session state stored on server
  • No Logging: Credentials are never logged
  • HTTPS Only: All communication encrypted (via hosting platform)
  • Input Validation: Full Pydantic validation on all inputs

๐Ÿ”‘ Authentication Flow

  1. User calls MCP tool with Oracle username/password
  2. Server receives request (credentials in memory only)
  3. Server authenticates request to Oracle API
  4. Oracle returns data
  5. Server formats and returns response
  6. Credentials discarded (not stored anywhere)

๐Ÿ“Š Technology Stack

  • Python 3.12 - Modern async Python
  • uv - Fast, reliable package manager
  • MCP SDK - Model Context Protocol support
  • httpx - Async HTTP client
  • Pydantic - Data validation and type safety
  • Starlette - ASGI web framework
  • uvicorn - ASGI server
  • pytest - Testing framework

๐Ÿ“ Project Structure

.
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ server.py          # MCP server with SSE transport
โ”‚   โ”œโ”€โ”€ tools.py           # MCP tool implementations
โ”‚   โ”œโ”€โ”€ oracle_client.py   # Oracle API client (async)
โ”‚   โ”œโ”€โ”€ formatter.py       # Response formatters
โ”‚   โ”œโ”€โ”€ errors.py          # Error handling
โ”‚   โ”œโ”€โ”€ models.py          # Pydantic models
โ”‚   โ””โ”€โ”€ config.py          # Configuration
โ”œโ”€โ”€ tests/                 # Test suite
โ”œโ”€โ”€ .github/workflows/     # CI/CD pipelines
โ”œโ”€โ”€ DEPLOYMENT.md          # Deployment guide
โ”œโ”€โ”€ pyproject.toml         # Project configuration
โ””โ”€โ”€ README.md             # This file

๐Ÿค Sharing Your Server

After deploying, share your server with others:

1. Share the SSE Endpoint URL

https://your-app.railway.app/sse

2. Provide Configuration Instructions

Users add this to their Claude Desktop config:

{
  "mcpServers": {
    "oracle-ar": {
      "url": "https://your-app.railway.app/sse",
      "transport": "sse"
    }
  }
}

3. Users Provide Their Own Credentials

Each user must have their own Oracle Fusion credentials, which they provide when using the tools. The server never stores or shares credentials between users.

๐Ÿงช Testing

Manual Testing

# Test health check
curl https://your-app.railway.app/health

# View available tools
curl https://your-app.railway.app/

# Test with MCP Inspector
npx @modelcontextprotocol/inspector --url https://your-app.railway.app/sse

Automated Testing

# Run test suite
uv run pytest

# Run with coverage
uv run pytest --cov=src --cov-report=html

# View coverage report
open htmlcov/index.html

๐Ÿ“ˆ Monitoring

Health Check

curl https://your-app.railway.app/health

Response:

{
  "status": "healthy",
  "service": "oracle-fusion-ar-mcp-server",
  "version": "1.0.0"
}

Platform Logs

  • Railway: Dashboard โ†’ Your App โ†’ Logs
  • Render: Dashboard โ†’ Your Service โ†’ Logs
  • Heroku: heroku logs --tail

๐Ÿ’ฐ Cost

Free Tier Options

  • Railway: $5 credit/month (sufficient for light use)
  • Render: 750 hours/month free
  • Heroku: Free with credit card (1000 dyno hours/month)

Paid Plans (Production)

  • Railway: ~$5-10/month
  • Render: ~$7/month
  • Heroku: ~$7/month

๐Ÿ”„ Updates & CI/CD

Automatic Deployments

Push to GitHub and your platform automatically deploys:

git add .
git commit -m "Add new feature"
git push origin main

GitHub Actions

  • โœ… Automatic testing on PRs
  • โœ… Code quality checks (ruff, mypy)
  • โœ… Coverage reports
  • โœ… Build verification

๐Ÿ› Troubleshooting

Server Won't Start

  • Check platform logs for errors
  • Verify environment variables are set
  • Ensure PORT is not hardcoded (use platform's PORT)

Oracle API Connection Failed

  • Verify ORACLE_BASE_URL is correct
  • Check Oracle API is accessible from your platform
  • Test with health check endpoint

Claude Desktop Can't Connect

  • Verify SSE endpoint URL is correct
  • Ensure HTTPS is enabled
  • Check server is running (health check)
  • Restart Claude Desktop after config change

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (uv run pytest)
  5. Commit changes (git commit -m 'Add amazing feature')
  6. Push to branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

๐Ÿ“„ License

MIT License - see LICENSE file

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support


๐Ÿš€ Deploy once, share with everyone!

Made with โค๏ธ for the MCP community

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured