Cork Public API & MCP Server
Last updated: April 23, 2026
API for accessing Cork platform data
Cork provides two ways to integrate with platform data:
Public REST API: Standard REST endpoints for accessing integrations, risk insights, and asset data
MCP Server: Wraps the REST API for use with MCP-compatible tools like Claude (Web, Desktop, Code), ChatGPT, Gemini CLI, etc
Both REST API and MCP server use an API key for authentication.
Where is the REST API documentation?
Documentation is available at https://api.corkinc.com/api/docs
How can I generate keys in the platform?
Estimated time: 1-2 minutes
In the Cork platform, you can generate keys by following these steps
Open the Admin tab
Select API Keys
Click "Add API Key"
Select a name and timeframe for when the API key should expire
Generate and securely store your key
Note: API key permissions are linked to the users who create them
MCP Setup
Estimated time: 5-10 minutes
Make sure you generate an API key within Cork Vantage first
Claude (Web) & Claude Desktop
Navigate to Customize > Connectors
Click the
+icon and click "Add custom connector"Enter the following:
Name: Cork
Remote MCP Server URL: https://api.corkinc.com/api/v1/mcp
Click "Add", it should drop you into the OAuth flow automatically
Enter your API key and click "Authorize"
Claude Code
Open a new terminal window
Run the following command:
claude mcp add cork --transport http https://api.corkinc.com/api/v1/mcpOpen a new Claude Code session by running
claudeRun
/mcpwithin the Claude Code session and authorize the Cork MCP connectionIt should drop you into the OAuth flow automatically
Enter your API key and click "Authorize"
ChatGPT
Navigate to your account settings
Click "Apps" and select "Advanced settings"
Ensure Developer Mode is enabled
Go back to "Apps" and click "Create app"
Enter the following:
Name: Cork
MCP Server URL: https://api.corkinc.com/api/v1/mcp
Authentication: OAuth
Leave all other options blank
Check the box next to "I understand and want to continue"
Click "Create", it should drop you into the OAuth flow automatically
Enter your API key and click "Authorize"
Gemini CLI
Open a new terminal window
Run the following command:
gemini mcp add cork https://api.corkinc.com/api/v1/mcp --transport httpOpen a new Gemini CLI session by running
geminiRun
/mcp auth corkand select "Yes", it should drop you into the OAuth flow automaticallyEnter your API key and click "Authorize"
Through mcp.json or schema that supports MCP servers
Update your configuration to include a new Cork MCP server:
{
"mcpServers": {
"cork": {
"url": "https://api.corkinc.com/api/v1/mcp"
}
}
}The next time you launch your tool it should prompt you to authorize, enter your API key and click "Authorize"
Manually with tools that do not support OAuth
Update your configuration to include a new Cork MCP server with specified authentication:
{
"mcpServers": {
"cork": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.corkinc.com/api/v1/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer YOUR_API_KEY"
}
}
}
}Example MCP Queries
Once configured, you can use prompts like:
Inactive devices
Identify all devices from my integrations that haven't been seen for more than 2 weeks.
Clients by compliance events
List all clients sorted by number of compliance events, and prioritize which ones should be addressed first.
Warranties expiring soon
List all clients with warranties expiring in the next 30 days and highlight any critical assets.