Introduction
The Pricing Intelligence MCP Server is a Python-based implementation of the Model Context Protocol (MCP) that orchestrates A-MINT transformation APIs and the Analysis API to answer complex pricing questions. It exposes powerful tools for extracting, analyzing, and optimizing SaaS pricing models.Architecture
The MCP Server acts as a middleware layer that:- Transforms unstructured pricing data from URLs into structured Pricing2Yaml format via A-MINT
- Orchestrates pricing analysis workflows through the Analysis API
- Caches pricing data and analysis results for improved performance
- Exposes MCP-compliant tools for LLM agents like Harvey
MCP Compliance
This server follows the 2025-06-18 revision of the MCP specification and implements:Tools
Five MCP tools for pricing operations:
iPricing, summary, subscriptions, optimal, and validateResources
Static resource endpoint providing the Pricing2Yaml specification
Transport
stdio transport (default) with optional HTTP/WebSocket support
JSON Results
All tool results returned as JSON content blocks
Protocol Features
Implemented:- Server primitives (tools and resources)
- Resource reading via
resources/read - JSON-formatted tool responses
- stdio transport for local execution
- Structured error handling via JSON-RPC
- Resource subscriptions (optional per spec)
- Resource template URIs (optional per spec)
Configuration
The MCP Server uses environment variables for configuration. Create a.env file based on .env.example:
Base URL for the A-MINT transformation API
Base URL for the Analysis API
Cache backend type. Options:
memory, redisRedis connection string (required if
CACHE_BACKEND=redis)Time-to-live for cached pricing data in seconds
Logging level. Options:
DEBUG, INFO, WARNING, ERROR, CRITICALMCP transport protocol. Options:
stdio, websocket, sseHost address for HTTP/WebSocket transport
Port for HTTP/WebSocket transport
Local Development
Set up the MCP server for local development:Docker Deployment
Run the MCP server with Docker Compose:Integration with Harvey
The Harvey API service launches this MCP server via stdio transport and communicates with it directly:API keys for external services (OpenAI, A-MINT) are managed by the MCP server and Harvey API. They are never exposed to end users.
Error Handling
The MCP server provides structured error responses: Input Validation Errors:Observability
The MCP server emits structured logs for key operations:Next Steps
MCP Tools
Explore all available MCP tools and their parameters
MCP Resources
Learn about the Pricing2Yaml specification resource
Analysis API
Understand the underlying analysis capabilities
Harvey Agent
See how Harvey uses MCP tools