Skip to main content
POST
/
mcp
MCP Server - OAuth Integration
curl --request POST \
  --url https://api.ai2fin.com/mcp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "id": 1,
  "params": {}
}
'
{
  "jsonrpc": "2.0",
  "id": "<string>",
  "result": {},
  "error": {
    "code": 123,
    "message": "<string>",
    "data": {}
  }
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint. Use for standard API access and OAuth-based integrations.

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
Example:

"2.0"

method
enum<string>
required
Available options:
initialize,
tools/list,
tools/call,
resources/list,
resources/templates/list,
resources/read,
prompts/list,
ping
Example:

"tools/list"

id
Example:

1

params
object

Method-specific parameters

Response

MCP response

jsonrpc
enum<string>
Available options:
2.0
id
result
object
error
object