DebtStack.ai MCP Server

DebtStack.ai MCP Server

Provides AI agents with real-time access to corporate credit data, including debt structures, bond pricing, and guarantor chains extracted from SEC filings. It enables complex financial analysis such as screening companies by leverage, tracing corporate hierarchies, and searching covenant language.

Category
访问服务器

README

DebtStack.ai Python SDK

Corporate credit data for AI agents.

PyPI License

Why DebtStack?

Equity data is everywhere. Credit data isn't.

There's no "Yahoo Finance for bonds." Corporate debt structures, guarantor chains, and covenant details are buried in SEC filings—scattered across 10-Ks, 8-Ks, credit agreements, and indentures. An AI agent trying to answer "which telecom companies have leverage above 5x?" would need to read dozens of filings, extract the right numbers, and compute ratios manually.

DebtStack fixes this. We extract, normalize, and serve corporate credit data through an API built for AI agents.

Three Things You Can't Do Elsewhere

1. Cross-Company Credit Queries

# Find distressed telecom companies
GET /v1/companies?sector=Telecommunications&min_leverage=5&sort=-net_leverage_ratio

Screen 177 companies by leverage, coverage ratios, or maturity risk in one call. No filing-by-filing analysis.

2. Pre-Built Entity Relationships

# Who guarantees this bond?
POST /v1/entities/traverse
{"start": {"type": "bond", "id": "893830AK8"}, "relationships": ["guarantees"]}

Guarantor chains, parent-subsidiary hierarchies, structural subordination—mapped and queryable. This data exists nowhere else in machine-readable form.

3. Agent-Ready Speed

< 100ms response time

AI agents chain multiple calls. If each took 30 seconds (reading a filing), a portfolio analysis would take hours. DebtStack returns in milliseconds.


Installation

pip install debtstack-ai

For LangChain integration:

pip install debtstack-ai[langchain]

Quick Start

from debtstack import DebtStackClient
import asyncio

async def main():
    async with DebtStackClient(api_key="your-api-key") as client:

        # Screen for high-leverage companies
        risky = await client.search_companies(
            sector="Telecommunications",
            min_leverage=4.0,
            fields="ticker,name,net_leverage_ratio,interest_coverage",
            sort="-net_leverage_ratio"
        )

        # Drill into the riskiest one
        ticker = risky["data"][0]["ticker"]
        bonds = await client.search_bonds(ticker=ticker, has_pricing=True)

        # Check guarantor coverage on their notes
        for bond in bonds["data"]:
            guarantors = await client.get_guarantors(bond["cusip"])
            print(f"{bond['name']}: {len(guarantors)} guarantors")

asyncio.run(main())

Synchronous Usage

from debtstack import DebtStackSyncClient

client = DebtStackSyncClient(api_key="your-api-key")
result = client.search_companies(sector="Energy", min_leverage=3.0)

What's In The Data

Coverage Count
Companies 211 (S&P 100 + NASDAQ 100 + high-yield issuers)
Entities 28,128 (subsidiaries, holdcos, JVs, VIEs)
Debt Instruments 4,496 (bonds, loans, revolvers) with 97% document linkage
Bond Pricing 3,557 bonds with FINRA TRACE pricing (updated 3x daily)
SEC Filing Sections 14,511 (searchable full-text)
Covenants 1,247 structured covenant records

Pre-computed metrics: Leverage ratios, interest coverage, maturity profiles, structural subordination scores.

Relationships: Guarantor chains, issuer-entity links, parent-subsidiary hierarchies.

API Methods

Method What It Does
search_companies() Screen by leverage, sector, coverage, risk flags
search_bonds() Filter by yield, spread, seniority, maturity
resolve_bond() Look up CUSIP, ISIN, or "RIG 8% 2027"
traverse_entities() Follow guarantor chains, map corporate structure
search_pricing() FINRA TRACE bond prices, YTM, spreads
search_documents() Full-text search across credit agreements, indentures
batch() Run multiple queries in parallel
get_changes() Track debt structure changes over time

Examples

Which MAG7 company has the most debt?

result = await client.search_companies(
    ticker="AAPL,MSFT,GOOGL,AMZN,NVDA,META,TSLA",
    fields="ticker,name,total_debt,net_leverage_ratio",
    sort="-total_debt",
    limit=1
)
# Returns structured data in milliseconds, not minutes

Find high-yield bonds trading at a discount

result = await client.search_bonds(
    seniority="senior_unsecured",
    min_ytm=8.0,
    has_pricing=True,
    sort="-pricing.ytm"
)

Who guarantees a specific bond?

guarantors = await client.get_guarantors("893830AK8")
for g in guarantors:
    print(f"{g['name']} ({g['entity_type']}) - {g['jurisdiction']}")

# Output:
# Transocean Ltd. (holdco) - Switzerland
# Transocean Inc. (finco) - Cayman Islands
# Transocean Offshore Deepwater Drilling Inc. (opco) - Delaware
# ... 42 more entities

Search for covenant language

result = await client.search_documents(
    q="maintenance covenant",
    section_type="credit_agreement",
    ticker="CHTR"
)
# Returns matching sections with highlighted snippets

LangChain Integration

Build AI agents that can autonomously analyze corporate credit data.

Installation

pip install debtstack-ai[langchain]

Available Tools

Tool Description
debtstack_search_companies Screen companies by leverage, sector, coverage ratios, and risk flags
debtstack_search_bonds Filter bonds by yield, spread, seniority, maturity, and pricing
debtstack_resolve_bond Look up bonds by CUSIP, ISIN, or description (e.g., "RIG 8% 2027")
debtstack_traverse_entities Follow guarantor chains, map corporate structure, trace ownership
debtstack_search_pricing Get FINRA TRACE bond prices, YTM, and spreads
debtstack_search_documents Full-text search across credit agreements, indentures, and SEC filings
debtstack_get_changes Track debt structure changes over time (new issuances, maturities, leverage)

Full Example

from debtstack.langchain import DebtStackToolkit
from langchain.agents import AgentExecutor, create_openai_functions_agent
from langchain_openai import ChatOpenAI
from langchain import hub

# Initialize toolkit with your API key
toolkit = DebtStackToolkit(api_key="your-api-key")
tools = toolkit.get_tools()

# Create an agent with GPT-4 (or any LangChain-compatible LLM)
llm = ChatOpenAI(temperature=0, model="gpt-4")
prompt = hub.pull("hwchase17/openai-functions-agent")
agent = create_openai_functions_agent(llm, tools, prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)

# Ask natural language questions about corporate credit
result = agent_executor.invoke({
    "input": "Which telecom companies are most at risk of default?"
})
print(result["output"])

Example Queries

The agent can handle complex, multi-step credit analysis:

  • "Which telecom companies have leverage above 5x and near-term maturities?"
  • "Find all bonds yielding above 8% with senior secured status"
  • "Who guarantees Transocean's 8.75% 2030 notes? How many entities are in the guarantee chain?"
  • "Compare Charter and Altice's corporate structures - which has more structural subordination risk?"
  • "What changed in RIG's debt structure since January 2025?"
  • "Search for maintenance covenant language in Charter's credit agreements"
  • "Find distressed bonds trading below 80 cents on the dollar"

MCP Server (Claude Desktop, Claude Code, Cursor)

Give Claude (or any MCP client) direct access to corporate credit data.

Installation

pip install debtstack-ai[mcp]

Available Tools

Tool Description
search_companies Search companies by ticker, sector, leverage ratio, and risk flags
search_bonds Search bonds by ticker, seniority, yield, spread, and maturity
resolve_bond Look up a bond by CUSIP, ISIN, or description (e.g., "RIG 8% 2027")
get_guarantors Find all entities that guarantee a bond
get_corporate_structure Get full parent-subsidiary hierarchy for a company
search_pricing Get FINRA TRACE bond prices, YTM, and spreads
search_documents Search SEC filing sections (debt footnotes, credit agreements, indentures)
get_changes See what changed in a company's debt structure since a date

Claude Desktop

Add to your Claude Desktop config (~/.config/claude/mcp.json on Mac/Linux, %APPDATA%\Claude\mcp.json on Windows):

{
    "mcpServers": {
        "debtstack-ai": {
            "command": "debtstack-mcp",
            "env": {
                "DEBTSTACK_API_KEY": "your-api-key"
            }
        }
    }
}

Claude Code

Add to your Claude Code config (~/.claude/mcp.json):

{
    "mcpServers": {
        "debtstack-ai": {
            "command": "debtstack-mcp",
            "env": {
                "DEBTSTACK_API_KEY": "your-api-key"
            }
        }
    }
}

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

{
    "mcpServers": {
        "debtstack-ai": {
            "command": "debtstack-mcp",
            "env": {
                "DEBTSTACK_API_KEY": "your-api-key"
            }
        }
    }
}

Alternative: Run with Python Module

If you prefer not to install the console script, you can use python -m instead:

{
    "mcpServers": {
        "debtstack-ai": {
            "command": "python",
            "args": ["-m", "debtstack.mcp_server"],
            "env": {
                "DEBTSTACK_API_KEY": "your-api-key"
            }
        }
    }
}

Example Queries

Once configured, ask Claude:

  • "Which energy companies have near-term maturities and high leverage?"
  • "Who guarantees the Transocean 8% 2027 notes?"
  • "Compare Charter's debt structure to Altice"
  • "Find all senior secured bonds yielding above 8%"
  • "What are the financial covenants in Charter's credit agreement?"
  • "Show me RIG's corporate structure - where does the debt sit?"
  • "What changed in CVS's debt structure since June 2025?"
  • "Search for change-of-control provisions in Altice's indentures"

Pricing

DebtStack offers usage-based pricing with a free tier to get started.

See debtstack.ai/pricing for details.

Links

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选