Before you start
You need:- A Govly account with a paid seat. Enterprise API access is not required to connect.
- A client that supports remote HTTP MCP servers.
- A Govly API key if your client only accepts a static bearer token — either a personal key or an agent account key, depending on who is driving the connection.
Choose an authentication method
Start with one question: is this connection an integration, or is it you?
The deciding question for that last row: if the person who set this up left tomorrow, should it keep running? If yes, use an agent account. A personal key stops working when that person is deactivated, which takes the integration down with them.
Connect with OAuth
1
Add a remote MCP server
In your client, add a remote MCP server named
Govly with the URL https://app.govly.com/api/mcp.2
Sign in to Govly
Follow the browser prompt and sign in to your existing Govly account. Govly’s OAuth flow does not create new users.
3
Approve access
Review the authorization request and approve the connection.
4
Test the connection
Ask the client to list its Govly tools or try a small request such as, “What workspaces do I have in Govly?”
Connect with a personal API key
Create a personal API key
1
Open API settings
In Govly, go to Settings → API → API Keys.
2
Create a personal key
Under Personal API Keys, select New key and name it after the client that will use it.
3
Copy and store the key
Copy the
gk_... token into a secret manager or environment variable. The token stays visible on this page, so treat access to your API settings as access to the key itself.Configure your client
Most MCP clients accept a configuration block like this:Connect through an AI provider API
When an AI provider API supports remote MCP servers:- Add a remote MCP server named
govly. - Use
https://app.govly.com/api/mcpas the server URL. - Use your personal Govly API key as the server authorization token.
- Require approval for tool calls while you test the integration.
- Start with a low-risk request, such as listing Govly tools or running one opportunity search.
Verify the connection
Send a JSON-RPCtools/list request with your personal key:
search_opportunities, search_awards, search_contacts, search_places, list_places, document_read, document_download, and list_workspaces.
Connect with an agent account key
An agent account is a non-human identity in your organization. It holds its own API keys, so a durable integration does not depend on an employee’s account and does not share an organization-wide credential that belongs to nobody. Agent accounts are not people. They have no mailbox, cannot sign in, do not receive notifications or digests, and cannot be shared with or @-mentioned. They act only through their API keys.1
Create the agent
An organization admin goes to Settings → API → Agent Accounts and creates an agent, naming it after the integration it will run.
2
Create a key
Select New key on that agent, then copy the
gk_... token.3
Store the key
Put it in a secret manager or environment variable, never in source control. The token stays visible on the Agent Accounts page, so anyone who can administer your organization’s API settings can read it. Revoke a key if you suspect it has been exposed — revocation is immediate and permanent.
4
Connect your client
Use the same configuration as a personal key, with the agent’s token as the bearer value.
Agent accounts cannot use OAuth, because they cannot sign in. That also means they cannot be used with the Govly connector in the hosted Claude app, which authorizes through a browser sign-in. Use an agent key from a client that accepts a bearer token — a command-line tool, an AI provider API, or your own scheduled job.
Developing against an agent account
Use the agent’s key while you build the integration, not your own. You will be testing with the identity that will actually run in production, so permission and subscription differences surface during development rather than after deploy.Deciding what to build on
MCP is worth its complexity when a model needs to choose which tools to call. If your code already knows which calls to make — fetch new matches, filter by NAICS, write to your CRM — the Tools API is simpler, cheaper, and easier to test. An agent account key works on either surface.Multiple Govly organizations
OAuth connections, personal API keys, and agent accounts are all scoped to the Govly organization where they were authorized or created. To connect another organization, authorize a separate OAuth connection while viewing that organization, or create a separate key from it.Manage keys
Key-based connections do not appear under Connected Apps.- Personal keys — Govly Settings → API → API Keys.
- Agent account keys — Govly Settings → API → Agent Accounts, on the agent that owns them.
Troubleshooting
Still stuck? Email support@govly.com with the client you’re using and any error messages you’re seeing.