> For the complete documentation index, see [llms.txt](https://nfa.gitbook.io/nfa-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nfa.gitbook.io/nfa-docs/interfaces/the-mcp-server.md).

# The MCP server

## The MCP server

{% hint style="warning" %}
**Coming soon.** The MCP server is in development and not yet live. This page describes what it will offer. Programmatic access via API keys is planned to arrive with it.
{% endhint %}

NFA is built to be used by software, not just people. An MCP server that exposes the engine over the Model Context Protocol is on the way, so an AI agent or assistant will be able to forecast a market and read the result the same way a person would, without a browser.

### What an agent will be able to do

Through the hosted MCP server, an authenticated client will be able to:

* **forecast a market** and get back a run it can follow to completion,
* **retrieve a finished forecast** and its reasoning,
* **browse available markets**, and
* **check accuracy and credit balance**.

Forecasts are long-running, so a paid forecast will start a job and return a handle immediately rather than holding the connection open. Read-only queries will be free.

### Access

An agent will authenticate with an API key created from your account (see Accounts and safety). The same credit balance, limits, and quality safeguards that apply in the app will apply here, so an agent gets the same honest, self-checked forecasts, priced the same way.

{% hint style="info" %}
This is how NFA is meant to scale as a source of edge: not only as an app people open, but as a forecasting service an agent can consult before it acts, always non-custodially and always with the reasoning attached.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://nfa.gitbook.io/nfa-docs/interfaces/the-mcp-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
