logo

Links

OpenAI / ChatGPT

Connect Links MCP to OpenAPI / ChatGPT

This guide explains how to connect ChatGPT or OpenAI-compatible AI clients to the Links MCP Server using an OpenAPI-compatible HTTPS endpoint.

The Links MCP Server is hosted remotely and exposed over HTTPS with Server-Sent Events (SSE).
This allows ChatGPT, Custom GPTs, or OpenAI-based agents to securely invoke MCP tools using standard API authentication.


Prerequisites

Before starting, ensure you have the following:

1
ChatGPT or OpenAI Client
ChatGPT (Plus, Team, or Enterprise) or an application using the OpenAI API.
2
OpenAPI / ChatGPT
Required to define MCP tools as callable actions.
3
Links MCP Key
Used to authenticate MCP tool requests.

Configuration

Define the MCP Endpoint

The Links MCP Server is available over HTTPS and supports tool invocation using Server-Sent Events (SSE).

This endpoint will be referenced in your OpenAPI schema or client configuration:

https://dev-backend.thelinks.ai/api/v1/mcp

Provide Authentication Headers

MCP requests must include your Links API Key as a Bearer token.

When defining the server in an OpenAPI schema or tool configuration, include the following header:

Authorization: Bearer YOUR_API_KEY_HERE

Authentication

The API key should be treated as a secret and never embedded directly in client-side applications.

Configure ChatGPT (Custom GPT)

If you are using ChatGPT Custom GPTs:

  1. Open Explore GPTs → Create
  2. Navigate to Actions
  3. Upload or paste an OpenAPI schema that points to the Links MCP endpoint
  4. Configure authentication using an API key header

ChatGPT will automatically invoke MCP tools when user prompts match available actions.

Configure OpenAI API Clients

For programmatic usage, configure the Links MCP endpoint as a tool server in your OpenAI client.

Once configured, the model can issue MCP tool calls during inference to retrieve or act on financial data.

Verify the Integration

Test the integration with a prompt such as:

“List the most recent invoices available in my account.”

A successful response confirms that ChatGPT is able to call Links MCP tools correctly.


Troubleshooting

If tool calls are not working as expected:

1. Check API Key Permissions

Ensure the API key is active and has permission to access the required MCP tools.

2. Validate OpenAPI Schema

Confirm that:

  • The server URL matches the MCP endpoint exactly
  • Paths and request bodies align with MCP tool definitions

3. Inspect Authentication Headers

Verify the Authorization header is correctly formatted:

Authorization: Bearer sk_...

On this page