Skip to main content

🔥 Phoenix AI Services is MCP server

Unified agentic framework to run dynamic RAG APIs and utility tools like calculator, date, and python evaluator.

phoenix_ai_services

PyPI - Version Code Style - Black Python Version License


phoenix_ai_services is a modular Python package for managing RAG endpoints, tool-based APIs, and plug-and-play AI utilities using FastAPI & Poetry. It supports RESTful control for registering, updating, and deleting endpoints for RAG, tools, and more.

🔧 Setup

poetry install
poetry run python phoenix_ai_services/main.py

🧩 MCP Server (Latest Standard)

Phoenix AI Services now exposes an MCP-compatible SSE server mounted at /mcp by default.

  • SSE endpoint: GET /mcp/sse
  • Message endpoint: POST /mcp/messages/

You can change the mount path via PHOENIX_MCP_MOUNT_PATH.

Example: Run with Uvicorn (Production)

PHOENIX_HOST=0.0.0.0 PHOENIX_PORT=8003 uvicorn phoenix_ai_services.main:app

🚀 API Endpoints

RAG

  • POST /rag/endpoints/{name} – Register RAG
  • PUT /rag/endpoints/{name} – Update RAG
  • DELETE /rag/endpoints/{name} – Remove RAG
  • GET /rag/query/{name} – Ask RAG agent

Tools

  • GET /tool/calculator?input_data=2+3*4
  • GET /tool/system_time
  • GET /tool/python?input_data=round(3.14159, 2)

Admin

  • GET /rag/endpoints – View all registered endpoints

Health

  • GET /healthz – Liveness check
  • GET /elk/query?q=message:error – Query ELK with a query string

⚙️ Production Configuration

Environment variables:

  • PHOENIX_HOST (default: 0.0.0.0)
  • PHOENIX_PORT (default: 8003)
  • PHOENIX_LOG_LEVEL (default: info)
  • PHOENIX_MCP_MOUNT_PATH (default: /mcp)
  • PHOENIX_ELK_BASE_URL (example: https://your-elasticsearch:9200)
  • PHOENIX_ELK_INDEX (example: logs-*)
  • PHOENIX_ELK_API_KEY (optional, API key for Elasticsearch)

🔍 ELK MCP Integration Examples

Configure ELK connection

export PHOENIX_ELK_BASE_URL="https://your-elasticsearch:9200"
export PHOENIX_ELK_INDEX="logs-*"
export PHOENIX_ELK_API_KEY="your_api_key"

REST query example

curl "http://localhost:8003/elk/query?q=service:api%20AND%20level:error&size=5"

MCP tool example (client-side)

Use your MCP client to call the mcp_query_elk tool:

tool: mcp_query_elk
args:
  query: "service:api AND level:error"
  size: 5

🧠 Powered by Phoenix Agentic AI Framework

Metadata

Release files for phoenix-ai-services 0.2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phoenix-ai-services 0.2.8.0
File Size Uploaded Provenance Actions
phoenix_ai_services-0.2.8.0.tar.gz 8.9 kB Without provenance Details for phoenix_ai_services-0.2.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phoenix-ai-services 0.2.8.0
File Interpreter ABI Platform Actions
phoenix_ai_services-0.2.8.0-py3-none-any.whl Python 3 none any Details for phoenix_ai_services-0.2.8.0-py3-none-any.whl

Total release size: 20.4 kB

Release files / phoenix_ai_services-0.2.8.0.tar.gz

Download URL phoenix_ai_services-0.2.8.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1b514ca6b77a48a4c8d50e570a7380e4e0a58d2624923c6c37abd45e4ad3022b
BLAKE2b-256 checksum
How to use checksums
2b113825ac5b8207f2f9837260aa993d896e67a958cbb6ad3459781c229de394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.14.2 Linux/6.11.0-1018-azure

Release files / phoenix_ai_services-0.2.8.0-py3-none-any.whl

Download URL phoenix_ai_services-0.2.8.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20dd1f6fd637a4c20a23bc984ff0a278515db85467baad1cc0f6b103df819364
BLAKE2b-256 checksum
How to use checksums
ac2a5e4ec612226709f31cee09aeaf9472491fa9e1e0064fdb20653e6e2de948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.14.2 Linux/6.11.0-1018-azure

Security for phoenix-ai-services 0.2.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page