Connect to ChatGPT (API)

This guide walks you through connecting GovTribe MCP (Beta) to the ChatGPT API.

Difficulty Level: Advanced

Time to Integrate: ~15-20 Minutes

Best For: Developers


For testing tools, we recommend using the MCP Inspector which allows you to manually call all the tools with configurable arguments.


Prerequisites

  • You must create and sign in to an OpenAI account.

  • Once signed in, follow the official Developer Quickstart for OpenAI & obtain an OpenAI API key.

  • Obtain a GovTribe API key from support for use with the GovTribe MCP server.

GovTribe MCP is authenticated as a GovTribe user. Your GovTribe account permissions determine what data/tools are available.


Step 1 — Visit OpenAI Platform

  1. Click + Add under the Tools menu, and select MCP server

Step 2 — Configure MCP Server

  1. Click + Server in the pop up

  2. Add the url https://govtribe.com/mcp, create a label/description, and paste your API key

Step 3: Configure Available Tools

Confirm which tools you want enabled, scroll to the bottom, and press Add

Step 4: Test the MCP Server

You can now configure any prompts you'd like and test the GovTribe MCP as needed.

Step 5: Copy as Code Snippet

  1. Navigate to the three dot menu in the upper right hand corner, which opens a dropdown

  2. Click the Code menu option, and see your test prompt represented as API calls

Last updated

Was this helpful?