使用说明
apic-mcp-server
IBM APIC MCP server exposes API Connect capabilities to your MCP clients and AI Agent workflows.
Using apic-mcp-server with MCP Clients
This MCP server can be integrated with various MCP clients such as Claude Desktop, VS Code, and IBM BOB etc.
📰 Blogs
Exploring IBM API Connect v12.1.0 API Analytics with the API Agent's Analytics MCP Tool
🔀 Which package do I need?
| I'm running… | Package to use |
|---|---|
| API Connect v10.0.10+ | apic-v10-mcp-server — one server, all tools |
| API Connect v12 | Per-service packages: Analytics, Management, Governance, and more |
API Connect v10 users: the v10 MCP server requires v10.0.10 or above,
API Agentmust be enabled (refer to this article for more info onAPI Agent), and the connecting user must have theapi-agentrole. There is a single MCP server build that covers all available tools — just installapic-v10-mcp-serverand you're done.
📦 API Connect v10 Setup
✅ Prerequisites
[!IMPORTANT] Minimum requirements for the v10 MCP server:
- API Connect v10.0.10 or above
API Agentmust be enabled on your instance (refer to this article for more info onAPI Agent)- The connecting user must have the
api-agentrole in the provider organization
- An existing API Connect v10.0.10+ instance (on-prem or SaaS)
- Your
provider organizationname API keyto connect to your API Connect instanceClient IDconfigured on your API Connect instanceClient Secretconfigured on your API Connect instanceAPIC Platform URLof your instanceAPIC Management URLof your instance
- Your
API Agentenabled on your APIC instance- User account with the
api-agentrole in the target provider organization - The
apic-v10-mcp-serverpackage — one of:.tgznpm archive:apic-v10-mcp-server-x.x.x.tgz.mcpbClaude extension:apic-v10-mcp-server-x.x.x.mcpb
- One of the suggested MCP clients below
🛠️ Available Tools (v10)
The apic-v10-mcp-server exposes the following tools:
Analytics — GetAnalyticsStatus, GetAnalyticsUsage, GetAnalyticsLatency, GetAnalyticsUsers, GetAnalyticsConsumer, GetAnalyticsApplication
Governance — ValidateOpenAPI, ValidateProduct, ValidateWithRulesets, RuleRemediation, GetAllRulesets, GetRulesFromRuleset, CreateRulesetWithRule, GovernanceRulesetCreator, GovernanceRulesetUpdater, SpectralRuleValidator
Management — ListCatalogs, ListSpaces, ListPublishedApis, ListPublishedProducts, ListPlans, ListConsumerOrgs, ListConsumerApps, ListConsumerAppCredentials, CreateConsumerApp, ListSubscriptionsInConsumerApp, ListSubscriptionsInACatalog, CreateSubscriptionForPublishedAPI, CreateSubscriptionForPublishedProduct, ListGatewaysInCatalog
GenAI — SpectralRuleGenerator, OpenAPIGenerator, EnhanceOpenAPI, ListGatewayPolicies, GatewayPolicyGenerator, GatewayPolicyModifier
💻 Suggested MCP Clients
IBM BOB — v10 Setup
-
Locate
mcp.bob.jsonin thev10_buildfolder. -
Fill in your configuration values:
{ "mcpServers": { "apic-v10-mcp-server": { "command": "npx", "args": ["-y", "-p", "<path-to-apic-v10-mcp-server-x.x.x.tgz>", "apic-v10-mcp-server"], "env": { "NODE_TLS_REJECT_UNAUTHORIZED": "1", "PROVIDER_ORG": "<your-provider-organization-name>", "API_KEY": "<your-api-key>", "client_id": "<your-client-id>", "client_secret": "<your-client-secret>", "APIC_PLATFORM_URL": "<your-apic-platform-url>", "APIC_MANAGEMENT_URL": "<your-apic-management-url>" } } } } -
Copy the filled file to your workspace
.bob/mcp.json. -
Restart Bob to load the new MCP server.
VS Code — v10 Setup
- Locate
mcp.vscode.jsonin thev10_buildfolder. - Copy it into your workspace
.vscode/mcp.json. - Open VS Code →
⌘+P/Ctrl+P→>MCP: List Servers→ selectapic-v10-mcp-server→ Start Server. - VS Code will prompt you for each value (API key, provider org, client ID/secret, URLs) when the server starts.
Claude Desktop — v10 Setup
- Locate
apic-v10-mcp-server-x.x.x.mcpbin thev10_buildfolder. - Double-click the
.mcpbfile — Claude Desktop opens and starts the installation wizard. - Enter your API Connect details when prompted.
- Click Save / Install, then enable the extension (Claude sets it disabled by default).
📦 API Connect v12 Setup
For API Connect v12, install the per-service packages you need. See the prerequisites and client setup instructions below.
✅ Prerequisites
- Existing API Connect v12 instance (on-prem or SaaS)
- Your
provider organizationname API keyto connect to your API Connect instanceClient IDandClient Secretconfigured on your instanceAPIC Platform URLandAPIC Management URLof your instance
- Your
- The
.tgzor.mcpbfile for each service you want (e.g.,analytics,governance) - One of the suggested MCP clients above
📄 Debug Logs (all versions)
When running the MCP server, INFO level logs are written to a daily rotating file in a directory called apic-mcp inside your home directory by default:
- Windows:
- Log files are located at
%USERPROFILE%\apic-mcp\apic-mcp-YYYY-MM-DD.log
- Log files are located at
- macOS / Linux:
- Log files are located at
~/apic-mcp/apic-mcp-YYYY-MM-DD.log
- Log files are located at
The log directory is created automatically if it does not exist. Each log file contains one day's logs and up to 14 days of logs are retained. If the log directory cannot be created, logs are discarded.
Additionally, if you would like the log file to capture DEBUG level logs, update your chosen mcp client's env config to include the below env property:
LOG_LEVEL: 'debug'
For example:
"servers": {
"apic-analytics-mcp-server": {
"command": "npx",
"args": ["-y", "-p", "${input:tarPath}", "apic-analytics-mcp-server"],
"env": {
...
...
"LOG_LEVEL": "debug"
}
}
}
📝 Setup Instructions for suggested MCP Clients
📝 Setup Instructions for API Connect v12 (service-based MCP clients)
IBM BOB
IBM Bob provides two setup methods: an automated skill-based approach (recommended) and manual configuration.
Automated Setup (Recommended)
Bob uses a skill called init-apic-ai-assets that automates the entire installation and configuration process. Install it with a single command:
npx -y skills add -y https://github.com/ibm-apiconnect/apic-mcp-server/skills -a bob
Once installed, open the chat, ensure in Agent mode and type / in the chat and select init-apic-ai-assets command and hit enter:
/init-apic-ai-assets
The skill will automatically:
- ✅ Ask which IBM product you are setting up (IBM API Connect or IDIG standalone)
- ✅ Verify prerequisites (Git, Node.js v20+, npm)
- ✅ Clone the official APIC MCP server repository to
~/apic-mcp/ - ✅ Install the API Studio CLI (
@apistudio/apim-cli) - ✅ Prompt you for required configuration values (API keys, URLs, etc.) one at a time
- ✅ Generate the
.bob/mcp.jsonconfiguration file with absolute paths - ✅ Validate the complete installation
Restart Bob after the skill completes to load the newly configured MCP servers.
Manual Configuration (Alternative)
If you prefer manual setup or need to troubleshoot:
- Choose the template file
mcp.bob.jsonfrom the specific service folder - Fill in your APIC configuration details in the template
- Copy the configured mcp json to your workspace
.bobfolder - Follow the official Bob setup guide:
- Open
IBM BOB MCP server setup - Follow the manual configuration instructions
- Open
Troubleshooting Bob Setup
Skill not found (init-apic-ai-assets):
- Ensure the skill was installed successfully via the
npx -y skillscommand above - Verify you are using a Bob version that supports skills
- Try restarting Bob to refresh available skills
Installation fails:
- Check prerequisites: Git, Node.js v20+, npm must be installed
- Verify network connectivity to GitHub
- Review Bob's logs for specific error messages
- Try manual configuration as a fallback
Servers don't appear after installation:
- Restart Bob completely (not just reload)
- Verify
.bob/mcp.jsonexists and contains valid JSON - Check that all
.tgzfiles exist at the paths specified in the configuration
Configuration updates:
- To update server configurations, re-run the
init-apic-ai-assetsskill - Existing configurations will be preserved unless you choose to overwrite
- You can also manually edit
.bob/mcp.json
Visual Studio Code
Automated Setup (Recommended)
VS Code Copilot uses a skill called init-apic-ai-assets that automates the entire installation and configuration process. Install it with a single command:
npx -y skills add -y https://github.com/ibm-apiconnect/apic-mcp-server/skills -a github-copilot
Once installed, open the chat, ensure in Agent mode and type / in the chat and select init-apic-ai-assets command and hit enter:
/init-apic-ai-assets
The skill will automatically:
- ✅ Ask which IBM product you are setting up (IBM API Connect or IDIG standalone)
- ✅ Verify prerequisites (Git, Node.js v20+, npm)
- ✅ Clone the official APIC MCP server repository to
~/apic-mcp/ - ✅ Install the API Studio CLI (
@apistudio/apim-cli) - ✅ Prompt you for required configuration values (API keys, URLs, etc.) one at a time
- ✅ Generate the
.vscode/mcp.jsonconfiguration file with absolute paths - ✅ Validate the complete installation
Manual Configuration
- Choose the template file
mcp.vscode.jsonfrom the specific service folder - Fill in your APIC configuration details in the template
- Copy the configured mcp json to your workspace
.vscodefolder - Follow the official VS Code setup guide:
- Open
VS Code MCP server setup - Expand the section
Add an MCP server to your workspacefor detailed instructions
- Open
Claude Desktop
Claude Desktop supports easy installation through Anthropic's Extensions feature. We provide a pre-packaged .mcpb file for seamless setup.
No manual configuration needed! Simply install the .mcpb and follow the setup wizard.
Step 1: Locate the Extension File
Find the .mcpb file from the specific service folder, for example:
analytics_build/apic-analytics-mcp-server-x.x.x.mcpb
where x.x.x is the version of the APIC MCP server.
Step 2: Install the Extension
- Double-click the
.mcpbfile - Claude Desktop will automatically open and start the installation process
Step 3: Complete the Setup
- A setup wizard will appear asking for your API Connect instance details (see prerequisites)
- Click Save or Install
- Ensure you
enablethe extension — Claude sets it asdisabledby default
Step 4: Start Using
Once installed, the API Connect tools are available in your Claude Desktop conversations.
🛠️ Available Tools
API Connect v10
| Category | Tools |
|---|---|
| Analytics | GetAnalyticsStatus, GetAnalyticsUsage, GetAnalyticsLatency, GetAnalyticsUsers, GetAnalyticsConsumer, GetAnalyticsApplication |
| Governance | ValidateOpenAPI, ValidateProduct, ValidateWithRulesets, RuleRemediation, GetAllRulesets, GetRulesFromRuleset, CreateRulesetWithRule, GovernanceRulesetCreator, GovernanceRulesetUpdater, SpectralRuleValidator |
| Management | ListCatalogs, ListSpaces, ListPublishedApis, ListPublishedProducts, ListPlans, ListConsumerOrgs, ListConsumerApps, ListConsumerAppCredentials, CreateConsumerApp, ListSubscriptionsInConsumerApp, ListSubscriptionsInACatalog, CreateSubscriptionForPublishedAPI, CreateSubscriptionForPublishedProduct, ListGatewaysInCatalog |
| GenAI | SpectralRuleGenerator, OpenAPIGenerator, EnhanceOpenAPI, ListGatewayPolicies, GatewayPolicyGenerator, GatewayPolicyModifier |
API Connect v12
| Service | Docs |
|---|---|
| Analytics | Analytics tools |
| Management | Management tools |
More services coming soon.