← Developer Hub
Agentic Finance
FinanceGPT MCP Server
Connect AI agents to the governed FinanceGPT tool surface using stateless MCP 2026-07-28.
Version: v2
Stability: stable
Sandbox: Available
Production: Entitlement required
Target latency: ≤ 500 ms
POST
/api/mcpMCP uses the existing FinanceGPT API credential plus an explicit Agent Profile tool grant. Tool-specific API scopes, data licensing, model governance and marketplace subscriptions remain enforced.
Required scope:
agents:mcp:readTry it in the FinanceGPT sandbox
The playground uses deterministic isolated sandbox fixtures. It never queries production workspace data and does not require you to paste an API secret into the browser.
Sign in to runExample response
{
"result": {
"resultType": "complete",
"tools": []
}
}Code examples
curl
curl -X POST \
https://financegpt.dev/api/mcp \
-H "Authorization: Bearer $FINANCEGPT_API_KEY" \
-H "Content-Type: application/json" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: tools/list" \
-d '{"jsonrpc":"2.0","id":"demo-1","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}'python
import os, requests
url = "https://financegpt.dev/api/mcp"
headers = {"Authorization": f"Bearer {os.environ['FINANCEGPT_API_KEY']}", "MCP-Protocol-Version": "2026-07-28", "Mcp-Method": "tools/list"}
payload = {
"jsonrpc": "2.0",
"id": "demo-1",
"method": "tools/list",
"params": {
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28"
}
}
}
response = requests.request("POST", url, headers=headers, json=payload)
response.raise_for_status()
print(response.json())javascript
const response = await fetch('https://financegpt.dev/api/mcp', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.FINANCEGPT_API_KEY}`, 'Content-Type': 'application/json', 'MCP-Protocol-Version': '2026-07-28', 'Mcp-Method': 'tools/list' },
body: JSON.stringify({"jsonrpc":"2.0","id":"demo-1","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}})
});
if (!response.ok) throw new Error(`FinanceGPT ${response.status}`);
console.log(await response.json());php
<?php
$ch = curl_init('https://financegpt.dev/api/mcp');
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('FINANCEGPT_API_KEY'), 'Content-Type: application/json', 'MCP-Protocol-Version: 2026-07-28', 'Mcp-Method: tools/list'], CURLOPT_POSTFIELDS => '{\"jsonrpc\":\"2.0\",\"id\":\"demo-1\",\"method\":\"tools/list\",\"params\":{\"_meta\":{\"io.modelcontextprotocol/protocolVersion\":\"2026-07-28\"}}}']);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) >= 400) throw new RuntimeException($response);
echo $response;Versions & changelog
v2 published
M23 publication of this governed FinanceGPT API operation.
Ready to build?
Explorer gives immediate isolated sandbox access. Production plans require a commercial entitlement.
Create account