bizSupply MCP Server
Connect your AI assistant (Claude Desktop, Cursor, Claude Code) to bizSupply using the Model Context Protocol (MCP).
Connect your AI assistant (Claude Desktop, Cursor, Claude Code) to bizSupply using the Model Context Protocol (MCP).
What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI assistants interact directly with external tools and data sources. bizSupply runs a hosted HTTP MCP server that exposes your workspace as a set of tools your assistant can call in conversation. There is nothing to install and run locally — you point your client at the hosted endpoint and connect by OAuth, or with an API key for clients that run without a person.
Once connected, your AI can:
- Manage documents — list, search, view content and extracted data.
- Develop plugins — validate, create, update, and test plugins.
- Execute pipelines — run document processing workflows.
- Monitor jobs — track execution status and results.
- Manage ontologies — define extraction schemas.
- Work with prompts — create and manage LLM prompt templates.
The assistant calls the bizSupply API on your behalf through the MCP tool interface, and everything stays scoped to your active organization.
In-product use case. bizSupply's own support assistant ("bizAssistant") uses MCP internally — when you ask it "show me my recent documents" or "why did my last job fail?", it calls the same list_documents, get_job_status, and list_sources tools documented below through an HTTP MCP client that forwards your session token. Same protocol, same auth boundary, same tenant scoping — just plumbed from inside the product rather than from an external client like Claude Desktop.
Quick Start
1. Connect with OAuth (recommended)
Any MCP client that supports OAuth can connect without a key. Add the server URL:
https://api.bizsupply.ai/mcpFor example, in Claude Code:
claude mcp add --scope user --transport http bizsupply https://api.bizsupply.ai/mcpThe client discovers bizSupply's authorization server on its own and opens a browser window. Sign in, pick the organization, and choose what the app may do (see Access levels). You can see and revoke every connected app in Settings > Profile > Connected apps.
2. Or connect with an API key
Use a key for clients that do not support OAuth, or for scripts that run without a person. Create one in Settings > Developer, or through the API with your signed-in session:
curl -X POST "https://api.bizsupply.ai/api/v1/api-keys" \
-H "Authorization: Bearer <your-session-token>" \
-H "Content-Type: application/json" \
-d '{"name": "my-ai-assistant", "scope": ["bizsupply.read"], "expires_at": "2027-01-15T00:00:00Z"}'The response contains your API key (shown only once):
{
"id": "6f1c…",
"key": "bsp_K7xH2mN9pQ4wR6tY8uI1oL3jK5nB7vC9...",
"key_prefix": "bsp_K7xH",
"name": "my-ai-assistant",
"scope": ["bizsupply.read"],
"expires_at": "2027-01-15T00: 00: 00Z",
"created_at": "2026-01-15T10: 30: 00Z"
}Store the key somewhere safe — it is shown only once. If you lose it, revoke it and create a new one.
Then configure your client with the key:
Claude Code
claude mcp add --scope user --transport http bizsupply \
https://api.bizsupply.ai/mcp \
--header "X-API-Key: bsp_<your-api-key>"Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"bizsupply": {
"transport": "http",
"url": "https://api.bizsupply.ai/mcp",
"headers": {
"X-API-Key": "bsp_<your-api-key>"
}
}
}
}Cursor
Add to your Cursor MCP settings:
{
"mcp": {
"servers": {
"bizsupply": {
"transport": "http",
"url": "https://api.bizsupply.ai/mcp",
"headers": {
"X-API-Key": "bsp_<your-api-key>"
}
}
}
}
}3. Verify the Connection
Ask your AI assistant:
"Use the bizsupply ping tool to check the connection."
You should see a successful response confirming the connection.
Available Tools
Each tool maps to one or more bizSupply API endpoints. All tools are scoped to your active organization.
Public
| Tool | Description |
|---|---|
ping | Check server connectivity. |
server_info | Get server version and list available tools. |
Document Operations
| Tool | Description |
|---|---|
list_documents | List your documents with pagination. |
list_documents_filtered | Advanced filtering by labels, source, and dates. |
get_document | Get document details by ID. |
get_document_content | Get parsed text content. |
get_document_extracted_data | Get extracted structured data. |
get_document_relationships | Get linked / related documents. |
download_document | Download the original file (see size-limit note below). |
search_documents | Search by filename or content. |
get_document_stats | Statistics by source / labels. |
download_document size limit. The tool returns the file inline as base64, bounded by the platform's configured maximum file size (the same ceiling enforced by the parsing / LLM pipeline). Files above the cap return a BLOB_TOO_LARGE (HTTP 400) error instead of overwhelming the processing engine. Download larger files from the bizSupply app.
Plugin Development
| Tool | Description |
|---|---|
validate_plugin | Validate code before registration. |
list_plugins | List available plugins. |
get_plugin | Get plugin details. |
get_plugin_code | Get plugin source code. |
create_plugin | Register a new plugin. |
update_plugin | Update plugin code. |
delete_plugin | Remove a plugin. |
Pipeline Management
| Tool | Description |
|---|---|
list_pipelines | List configured pipelines. |
get_pipeline | Get pipeline configuration. |
create_pipeline | Create a pipeline from plugins. |
execute_pipeline | Start a pipeline execution. |
delete_pipeline | Remove a pipeline. |
Job Monitoring
| Tool | Description |
|---|---|
list_jobs | List jobs with status filters. |
get_job_status | Get detailed job status. |
cancel_job | Cancel a running job. |
get_last_sync | Get the last sync timestamp. |
Ontology Management
| Tool | Description |
|---|---|
list_ontologies | List ontologies. |
get_ontology | Get an ontology with its hierarchy. |
get_ontology_fields | Get fields for specific labels. |
create_ontology | Create an ontology from YAML. |
update_ontology | Update an ontology taxonomy. |
delete_ontology | Remove an ontology. |
Prompt Templates
| Tool | Description |
|---|---|
list_prompts | List prompt templates. |
get_prompt | Get a prompt with its content. |
create_prompt | Create a new prompt template. |
update_prompt | Update prompt content. |
delete_prompt | Remove a prompt. |
Source Management
| Tool | Description |
|---|---|
list_sources | List connected sources. |
get_source_details | Get full source information. |
get_source_state | Get plugin execution state. |
update_auto_sync | Configure auto-sync settings. |
Benchmark & Analytics
| Tool | Description |
|---|---|
list_benchmarks | List available benchmarks. |
get_document_score | Get a document quality score. |
get_actions_required | List documents needing attention. |
get_contract_renewals | List upcoming contract renewals. |
Role Guards and Permissions
Tools follow your permissions
Every tool checks the same permissions you have in the bizSupply app, in your active organization. Read-only tools (list, get, search) need read access; tools that create, change or delete plugins, pipelines, ontologies and prompts need the matching contribute or manage permission. An app or key never gets more than you have, and only what its access level allows. When a tool is refused, the response says which permission is missing.
Ownership Rules
Some tools also follow an ownership rule:
| Tool | Who can use it |
|---|---|
cancel_job | The job's owner, or someone who can manage the organization's pipelines |
get_plugin_code | The plugin's creator |
Ontology review and approval are not available over MCP. They are handled in the admin app.
stdio Transport (for clients without native HTTP support)
For clients that do not support HTTP transport natively, use mcp-remote to bridge stdio to HTTP:
{
"mcpServers": {
"bizsupply": {
"command": "npx",
"args": [
"mcp-remote",
"https://api.bizsupply.ai/mcp",
"--header",
"X-API-Key: bsp_<your-api-key>"
]
}
}
}The mcp-remote package translates stdio to HTTP, allowing any MCP client to connect to the bizSupply server.
Plugin Development Workflow
The MCP integration is especially powerful for plugin development. The recommended workflow is validate → fix → register → test.
Step 1: Check the plugin interface
Ask your AI:
"What are the requirements for a bizSupply classification plugin?"
The AI can reference the Plugin Interface documentation.
Step 2: Write the plugin code
Work with your AI to write the plugin. The assistant has access to plugin templates, the available service methods, and best practices.
Step 3: Validate before registration
Always validate first to catch errors early:
"Use validate_plugin to check this classification plugin code: [your code]"
Validation returns detailed feedback, including the offending line and a fix suggestion:
{
"valid": false,
"errors": [{
"error_type": "method_not_async",
"message": "Method 'classify' must be async",
"severity": "error",
"hint": "Change 'def classify' to 'async def classify'",
"line": 5
}]
}Step 4: Fix and re-validate
The AI can interpret the error and help you fix it:
"Fix the async issue and validate again."
Step 5: Register the plugin
Once validation passes:
"Create the plugin with this code."
The plugin then enters the platform's human-review gate before it can run.
Step 6: Test in a pipeline
"Create a pipeline with my new plugin and execute it on my documents."
Example Conversations
Once configured, you interact with bizSupply through natural language. A few examples:
List my documents
"Show me my recent documents from Gmail."
The assistant uses list_documents_filtered with the appropriate filters and presents the results in a formatted table.
Search for contracts
"Find all documents labeled 'contract' that mention 'renewal'."
The assistant uses search_documents with label and content filters.
Create a classification plugin
"Help me create a plugin that classifies documents as invoices, contracts, or receipts based on their content."
The assistant references the plugin interface, helps write the code, validates it with validate_plugin, and registers it with create_plugin.
Monitor processing
"What's the status of my last pipeline execution?"
The assistant uses list_jobs and get_job_status to report the status, progress counts, and any errors.
Authentication
Access levels
Every connected app and every API key has one or more access levels. They limit what it can do on your behalf; it can never do more than you can.
| Level | What it allows |
|---|---|
| Read | See contracts, documents and your organization. |
| Contribute | Upload documents, connect your sources and run pipelines. |
| Share and export | Export data and share documents outside your organization. |
| Negotiate | Work on negotiations. |
| Administer | Everything you can do. Lasts at most 90 days. |
- Share and export and Administer are offered to an app only after an admin of your organization approves that app, in Settings > Integrations.
- When an app asks for a tool its access level does not cover, your client is asked to request more access, and you approve it in the browser.
- Deletes need your confirmation. When an app asks to delete a plugin, pipeline, ontology or prompt, nothing is deleted. The request waits in bizSupply under Requests to confirm, and the app returns a link to it. Confirm or reject it there; a request expires after 24 hours.
API keys must expire
Every key has an expiry date: at most one year, or 90 days when it includes Administer. Your organization may set a shorter limit, or turn API keys off. Keys can only be created from a signed-in session, never with another key.
API Key Authentication
API keys authenticate requests through the platform's API gateway. Two header formats are accepted:
Dedicated header (preferred):
X-API-Key: bsp_<your-api-key>Bearer token (for clients that only support Authorization headers):
Authorization: Bearer bsp_<your-api-key>The bsp_ prefix lets the gateway distinguish API keys from session tokens. When Authorization: Bearer bsp_... is detected, the request is authenticated as an API key instead of a session.
API Key Format
bizSupply API keys have the format:
bsp_<opaque-key>Example: bsp_K7xH2mN9pQ4wR6tY8uI1oL3jK5nB7vC9dE0fG1hI2jK3lM4n
Managing API Keys
Create and manage keys via the platform API. These calls need a signed-in session token (the access token you get when you sign in); an API key cannot create or manage keys:
="color:#5c6370;font-style:italic"># Create a key (plaintext returned only once)
curl -X POST "https://api.bizsupply.ai/api/v1/api-keys" \
-H "Authorization: Bearer <your-session-token>" \
-H "Content-Type: application/json" \
-d '{"name": "my-ai-assistant", "scope": ["bizsupply.read"], "expires_at": "2027-01-15T00:00:00Z"}'
="color:#5c6370;font-style:italic"># List keys (metadata only, no plaintext)
curl "https://api.bizsupply.ai/api/v1/api-keys" \
-H "Authorization: Bearer <your-session-token>"
="color:#5c6370;font-style:italic"># Revoke a key (cannot be undone)
curl -X DELETE "https://api.bizsupply.ai/api/v1/api-keys/<key-id>" \
-H "Authorization: Bearer <your-session-token>"Security Best Practices
- Never share your API key in public repositories or chat logs.
- Rotate keys periodically — create new keys and revoke old ones.
- Use descriptive names — name keys by purpose (e.g., "claude-desktop-home").
- Revoke unused keys — remove keys you no longer need.
Key Permissions
A key acts as the user who created it, limited to its access levels:
- It sees only what that user can see, and does only what both the user's permissions and the key's access levels allow.
- If the user loses a permission or leaves the organization, the key loses it too, at once.
- A key with Read only cannot change anything.
Troubleshooting
Connection failed
Symptom: the AI reports it cannot connect to bizSupply.
- Check the URL is
https://api.bizsupply.ai/mcp. - With OAuth, check the app is still listed under Settings > Profile > Connected apps.
- With a key, verify it is correct (no extra spaces) and hasn't expired or been revoked.
Authentication error
Symptom: tools return "unauthorized" or "invalid API key".
- With OAuth, reconnect the app from your client.
- With a key, create a new one and update your AI client configuration.
- Restart your AI client.
Tool not found
Symptom: the AI says a tool doesn't exist.
- Verify the MCP connection with
ping. - Use
server_infoto list available tools. - Check the tool-name spelling (tools use
snake_case).
Validation errors
Symptom: plugin validation fails.
- Read the error message carefully — it includes fix suggestions.
- Check the Plugin Interface specification.
- Ensure all required methods are
async. - Verify the base-class inheritance.
Security Considerations
The MCP server is hosted by bizSupply and reached over HTTPS, by OAuth or with an API key. Keep the following in mind:
- An API key is stored in your MCP client's configuration file. Ensure that file has appropriate file-system permissions. OAuth keeps no long-lived secret in that file.
- All communication uses HTTPS; there is no insecure HTTP option.
- An app or key can do only what its access levels allow, and never more than you can. Give it the lowest level your workflow needs.
- Credential secrets are never returned through MCP tools — only credential names and types are visible.
Next Steps
- Plugin Interface — the required plugin contract.
- Create a Plugin — step-by-step plugin development.
- Plugin Service API — available helper methods.
Support
For MCP integration issues:
- Check this documentation first.
- Contact your bizSupply administrator.
- Email
support@bizsupply.ai.