How to integrate OpenAI using MCP
GPT models, images and embeddings. This guide creates an MCP server from Arthur's OpenAI template — tools preconfigured against https://api.openai.com/v1 — and finishes by sharing the server's MCP swagger documentation.
Steps
Open the Secrets vault and create a secret named
OPENAI_API_KEYholding your access token. Create an API key in your OpenAI account settings.


Go to the REST API Templates gallery and search for OpenAI.


Click Use template on the OpenAI card to open the server-creation dialog.


Review the server name and select
OPENAI_API_KEYin the credential field — the dialog only accepts vault secrets, and it lists every tool that will be created.


Click Create server. Arthur creates the server, applies the authentication, and generates all the tools.





Open the server's Tools tab to review the generated tools.

Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.



Confirm it worked
The server appears with 3 preconfigured tool(s): chat_completion, list_models, create_embedding. The Connect section offers the MCP swagger documentation — a shareable page with setup instructions for any AI client.
Good to know
- Access OpenAI's language models to generate text, answer questions, and create embeddings — all via the official REST API.
- This integration requires a credential (bearer). Get one at https://platform.openai.com/api-keys.
- Official API documentation: https://platform.openai.com/docs
- Editing a tool later never changes the template — templates are starting points, and the server is fully yours after creation.
Related
Tutorial video