apic-mcp-server
July 1, 2026 ยท View on GitHub
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
๐ป Suggested MCP Clients
โ Prerequisites
- Existing API Connect v10 or v12 customer either on SaaS or on-prem
- Your
provider organizationname API keyto connect with you API Connect instanceClient IDconfigured on your API Connect instanceClient Secretconfigured on your API Connect instanceAPIC Platform Endpointof your instanceAPIC Management Endpointof your instance
- Your
npm packagetar fileORthe.mcpbinstaller of the API Connect service (e.g., Analytics)- One of the
suggested MCP Clientapplication
๐ Debug Logs
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
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 -
Install Agent Skills (Required)
Clone the repository to get access to bundled skills:
# macOS/Linux git clone --filter=blob:none --no-checkout https://github.com/ibm-apiconnect/apic-mcp-server.git ~/apic-mcp git -C ~/apic-mcp sparse-checkout init --cone git -C ~/apic-mcp sparse-checkout set README.md skills/ git -C ~/apic-mcp checkout main# Windows (PowerShell) git clone --filter=blob:none --no-checkout https://github.com/ibm-apiconnect/apic-mcp-server.git "$env:USERPROFILE\apic-mcp" git -C "$env:USERPROFILE\apic-mcp" sparse-checkout init --cone git -C "$env:USERPROFILE\apic-mcp" sparse-checkout set README.md skills/ git -C "$env:USERPROFILE\apic-mcp" checkout mainThen install available skills:
# macOS/Linux npx -y skills add -y ~/apic-mcp/skills/init-apic-ai-assets -a bob# Windows (PowerShell) npx -y skills add -y "$env:USERPROFILE\apic-mcp\skills\init-apic-ai-assets" -a bob -
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 co-pilot 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 -
Install Agent Skills (Required)
Clone the repository to get access to bundled skills:
# macOS/Linux git clone --filter=blob:none --no-checkout https://github.com/ibm-apiconnect/apic-mcp-server.git ~/apic-mcp git -C ~/apic-mcp sparse-checkout init --cone git -C ~/apic-mcp sparse-checkout set README.md skills/ git -C ~/apic-mcp checkout main# Windows (PowerShell) git clone --filter=blob:none --no-checkout https://github.com/ibm-apiconnect/apic-mcp-server.git "$env:USERPROFILE\apic-mcp" git -C "$env:USERPROFILE\apic-mcp" sparse-checkout init --cone git -C "$env:USERPROFILE\apic-mcp" sparse-checkout set README.md skills/ git -C "$env:USERPROFILE\apic-mcp" checkout mainThen install available skills:
# macOS/Linux npx -y skills add -y ~/apic-mcp/skills/init-apic-ai-assets -a github-copilot# Windows (PowerShell) npx -y skills add -y "$env:USERPROFILE\apic-mcp\skills\init-apic-ai-assets" -a github-copilot -
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 now supports easy installation through Anthropic's new 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 you have obtained from the specific service folder of this repository, for example:
analytics/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
- Simply 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 details (listed in the
prerequisitessection) related to the APIC instance you would like to connect to - Click Save or Install
- Ensure you
enablethe extension, as claude sets it asdisabledby default
Step 4: Start Using
Once installed, the API Connect tools exposed via the MCP server will be available in your Claude Desktop conversations.
๐ ๏ธ Available Tools
Currently available tools
| Service | Link |
|---|---|
| Analytics | Analytics tools doc |
| Management | API Connect Management tools doc |
More to come soon...