Skip to main content
Glama
Aiera MCP

Aiera MCP

Official
by aiera-inc
IMPORTANT

:test_tube: This project is experimental and could be subject to breaking changes.

Aiera MCP Tools

A Model Context Protocol (MCP) package that provides access to Aiera financial data. This repository contains both a standalone MCP server and a reusable Python package.

Overview

This package exposes Aiera API endpoints as MCP tools, providing access to comprehensive financial data including:

  • Events: Calendar events, transcripts, and metadata

  • Company Information: Symbology, summaries, sectors, and watchlists

  • Company Documents: Press releases, slide presentations, disclosures, etc.

  • SEC Filings: Filing data and metadata

  • Financials: Income statements, balance sheets, and cash flow statements

  • Third Bridge: Expert insight events

  • Search: Semantic search within transcripts, SEC filing content, company documents, etc.

Related MCP server: octagon-mcp-server

Installation

Install directly from GitHub:

pip install git+https://github.com/aiera-inc/aiera-mcp.git

Or add to your pyproject.toml:

dependencies = [
    "aiera-mcp-tools @ git+https://github.com/aiera-inc/aiera-mcp.git@main",
]

Option 2: Local Development

  1. Clone and install:

git clone https://github.com/aiera-inc/aiera-mcp.git
cd aiera-mcp
uv sync --group dev  # Install with dev dependencies
  1. Set up pre-commit hooks (recommended for development):

uv run pre-commit install
  1. Set up environment variables:

export AIERA_API_KEY="your-aiera-api-key"

Alternatively, create a .env file in the project root (see Configuration section below).

  1. Run standalone server:

uv run entrypoint.py

Configuration

The package uses Pydantic BaseSettings for configuration management. All settings can be configured via environment variables or a .env file.

Available Settings

Setting

Environment Variable

Default

Description

Base URL

AIERA_BASE_URL

https://graphql.aiera.com/api

Aiera API base URL

API Key

AIERA_API_KEY

None

Your Aiera API key (required)

Page Size

DEFAULT_PAGE_SIZE

50

Default number of items per page

Max Page Size

DEFAULT_MAX_PAGE_SIZE

100

Maximum allowed page size

HTTP Timeout

HTTP_TIMEOUT

30.0

Request timeout in seconds

Max Keepalive Connections

HTTP_MAX_KEEPALIVE_CONNECTIONS

10

Maximum keepalive connections

Max Connections

HTTP_MAX_CONNECTIONS

20

Maximum total connections

Keepalive Expiry

HTTP_KEEPALIVE_EXPIRY

30.0

Keepalive expiry time in seconds

Log Level

LOG_LEVEL

INFO

Logging level

Using a .env File

Create a .env file in your project root (use .env.example as a template):

# Copy the example file
cp .env.example .env

# Edit with your values
AIERA_API_KEY=your-api-key-here
AIERA_BASE_URL=https://graphql.aiera.com/api  # Optional: override default
DEFAULT_PAGE_SIZE=100  # Optional: override default

Programmatic Configuration

Access and modify settings programmatically:

from aiera_mcp import get_settings, reload_settings

# Get current settings
settings = get_settings()
logger.debug(f"Base URL: {settings.aiera_base_url}")
logger.debug(f"Page Size: {settings.default_page_size}")

# Reload settings from environment (useful for testing)
reload_settings()

Custom Settings Instance

For advanced use cases, you can create a custom settings instance:

from aiera_mcp.config import AieraSettings

# Create settings with custom values
custom_settings = AieraSettings(
    aiera_base_url="https://custom.aiera.com/api",
    default_page_size=100,
    http_timeout=60.0
)

Usage

As a Package

from aiera_mcp import register_aiera_tools, set_api_key_provider

# Basic usage with AIERA_API_KEY environment variable
# Returns the tool registry dictionary
tools = register_aiera_tools()

# For OAuth systems (e.g., aiera-public-mcp)
from your_auth_system import get_current_api_key
tools = register_aiera_tools(api_key_provider=get_current_api_key)

# Or configure API key provider globally
set_api_key_provider(get_current_api_key)

# Import individual tool functions directly
from aiera_mcp import find_events, make_aiera_request, correct_bloomberg_ticker

Package Contents

Tools

  • Events: find_events, find_conferences, get_event, get_upcoming_events

  • Filings: find_filings, get_filing

  • Company Documents: find_company_docs, get_company_doc, get_company_doc_categories, get_company_doc_keywords

  • Third Bridge: find_third_bridge_events, get_third_bridge_event

  • Search: search_transcripts, search_filings

  • Equities: find_equities, get_equity_summaries, get_sectors_and_subsectors, get_financials

  • Indexes & Watchlists: get_available_indexes, get_index_constituents, get_available_watchlists, get_watchlist_constituents

Utilities

  • API Functions: make_aiera_request

  • Registration: register_aiera_tools - Configure API key provider and get tool registry

  • Authentication: set_api_key_provider, get_api_key, clear_api_key_provider - OAuth compatibility functions

Configuration

  • get_settings, reload_settings, AieraSettings - Configuration management functions (see Configuration)

  • DEFAULT_PAGE_SIZE, DEFAULT_MAX_PAGE_SIZE, AIERA_BASE_URL - Constants (loaded from settings, can be overridden via environment variables)

  • AVAILABLE_TOOLS - List of all 24 available tool names

Prerequisites

  • Python 3.11 or higher

  • An Aiera API key

  • Astral UV (for development)

Claude Desktop Configuration

Option 1: Using the Standalone Server

  1. Follow the Claude Desktop MCP installation instructions and find your configuration file.

  2. Use the following configuration:

    • Replace <your_api_key_here> with your actual Aiera API key

    • Replace <your_directory> with your home directory path

{
    "mcpServers": {
        "Aiera MCP": {
           "command": "uv",
           "args": [
               "run",
               "--with",
               "git+https://github.com/aiera-inc/aiera-mcp.git",
               "aiera-mcp"
            ],
            "env": {
               "AIERA_API_KEY": "<your_api_key_here>"
            }
        }
    }
}

Option 2: Using Local Installation

{
    "mcpServers": {
        "Aiera MCP": {
           "command": "<your_directory>/.local/bin/uv",
           "args": [
               "run",
               "--directory",
               "<your_directory>/aiera-mcp",
               "python",
               "entrypoint.py"
            ],
            "env": {
               "AIERA_API_KEY": "<your_api_key_here>"
            }
        }
    }
}

Usage Examples

Once integrated, you can prompt Claude to access Aiera data:

Get the latest earnings call transcript for Apple Inc. and summarize key points

Key Features

  • Comprehensive API Coverage: Implements most Aiera API endpoints as MCP tools

  • Flexible Integration: Use as a standalone server or integrate as a Python package

  • OAuth Compatible: Seamlessly integrates with OAuth authentication systems (e.g., aiera-public-mcp)

  • Multi-Authentication: Supports both environment variables and OAuth providers

  • Data Validation: Built-in utilities for correcting tickers, keywords, and other parameters

  • Type Safety: Pydantic-based parameter validation with automatic schema generation

  • Registry Pattern: Centralized tool metadata and configuration management

  • Development Ready: Full development environment with testing and linting tools

Some endpoints may require special permissions. Contact your Aiera representative for more details.

Authentication

This package supports two authentication methods:

Environment Variable (Default)

export AIERA_API_KEY="your-aiera-api-key"

OAuth Integration

For OAuth systems like aiera-public-mcp:

from aiera_mcp import register_aiera_tools
from your_oauth_system import get_current_api_key

register_aiera_tools(api_key_provider=get_current_api_key)

The package automatically handles API key resolution with fallback from OAuth provider to environment variable.

Testing

Manual Integration Testing

Since integration tests have been removed, use the manual testing script to validate the MCP tools against the real Aiera API.

Setup:

# Set up API key
export AIERA_API_KEY="your_api_key_here"

Manual Testing Script:

# Test all available tools
AIERA_API_KEY=your_api_key_here uv run python scripts/manual_test.py

# Test specific tool categories
AIERA_API_KEY=your_api_key_here uv run python scripts/manual_test.py find_events
AIERA_API_KEY=your_api_key_here uv run python scripts/manual_test.py find_filings

The manual test script:

  • Makes direct API calls and compares them with tool outputs

  • Tests each tool function individually

  • Logs discrepancies and issues to help with debugging

  • Provides comprehensive validation of tool behavior

Development

Version Management

This package uses automatic semantic versioning based on Git tags:

Creating a Release:

# 1. Ensure all changes are committed and pushed
git add . && git commit -m "Prepare release"

# 2. Create and push a version tag
git tag v1.2.3  # Use semantic versioning
git push origin v1.2.3

# 3. Create GitHub release (optional but recommended)
gh release create v1.2.3 --generate-notes

Version Formats:

  • Released versions: 1.2.3 (from Git tags like v1.2.3)

  • Development versions: 1.2.4.dev5+g1a2b3c4 (auto-generated from commits)

The package version is automatically determined from Git history using hatch-vcs.

Pre-commit Hooks

This project uses pre-commit for code quality:

# Install hooks (one time setup)
uv run pre-commit install

# Run manually
uv run pre-commit run --all-files

Privacy Policy

This MCP server interacts with Aiera's API to fetch relevant financial data. All data requests are subject to Aiera's privacy policy and terms of service, and require an active account.

  • Aiera Privacy Policy: https://aiera.com/privacy-policy/

  • Data Handling: This server does not store or cache any user data.

  • API Key: Your Aiera API key is used only for authenticating requests to their API.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI clients to search and analyze SEC filings, financial statements, insider trades, and institutional holdings through natural language tools.
      9
      201 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables users to ask natural-language questions and receive structured, source-backed answers across public filings, earnings transcripts, company financials, stock and crypto market data, news, and prediction markets research.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables natural-language research and structured, source-backed answers across SEC filings, earnings transcripts, company financials, stock and crypto market data, and prediction markets news and research.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables users to ask natural-language questions and receive structured, source-backed answers across public filings, earnings transcripts, company financials, stock and crypto market data, and prediction market news and research.
      -