the_inference_data

Guides /

What an MCP server is, and when to use one instead of an API

MCP, the Model Context Protocol, is an open standard for giving an AI model tools. A server publishes a list of tools, each with a name, a description and the inputs it takes. A client such as Claude Code, Cursor or your own agent reads that list, and the model decides which tool to call and with what.

For financial data that means an agent asked "how did Nvidia's data center revenue change last quarter?" can find the company, pull the income statement and answer from the filing, without you writing the calls.

MCP or a REST API?

Most data providers offer both, often on the same key. They suit different jobs:

  • REST fits code you write. You know which endpoint you need, you call it, you parse the JSON.
  • MCP fits a model that picks its own calls while it works. The tool descriptions tell it what each one does, and good servers return errors written for the model to act on.

A pipeline that fetches the same report every night wants REST. An assistant that answers open questions wants MCP.

Hosted or local

A hosted server is a URL. You add it to your client, sign in or pass a key, and you are done. A local server is a program your client starts on your machine, usually through npx, uvx or Docker, and it calls the provider's API with your key. Hosted is less to maintain; local lets you read and change the code.

What to check before you pick one

  • Coverage. Prices and fundamentals are common. SEC filings, insider trades and 13F holdings are not on every server.
  • Where the numbers come from. Figures parsed from filings can be traced back to a document. Ask whether results say where they came from.
  • The key and its terms. Some data may not be shown to your own users, and some free tiers are for personal use only.
  • Who made it. A server from the data provider is maintained with the API. A community server may fall behind it.

The directory lists each server's coverage, key and maker.