Get your API key
The server admin has set a bearer token. ChatGPT sends it on every call. If you don't have a key, ask your admin.
Create a Custom GPT
- Go to chat.openai.com/gpts/editor (Plus plan required).
- In the Configure tab, name your GPT and add a short description.
- Scroll to the bottom and click Create new action.
Import the OpenAPI schema
In the action editor, click Import from URL and paste this:
…
ChatGPT will load the schema and list three operations: ner, lookup, semantic_search.
Set authentication
- Click the gear icon next to Authentication.
- Choose API Key.
- Auth Type: Bearer.
- Paste your API key from Step 1.
Try it in your GPT
Save the GPT and send it a message like:
What MeSH terms match "opioid antagonist"? Use semantic_search.The GPT calls /search-records and returns ranked vocabulary candidates with similarity scores.
Test the API directly
Paste your API key and a query to verify the endpoint before configuring ChatGPT.
Connect from other clients
The same server speaks MCP at …. Any client that supports Streamable HTTP transport can use it.
Edit ~/.codex/config.toml and add:
Save the file and restart Codex. Verify by asking it to call semantic_search for a vocabulary query. See Codex docs for the latest MCP config schema.