bkataoka/apic_mcp
If you are the rightful owner of apic_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A minimal MCP server for IBM API Connect SaaS with login functionality.
apic-mcp
A minimal MCP server for IBM API Connect SaaS with login functionality.
Setup & Run
-
Copy the environment template and fill in your credentials:
cp .env.example .env # Edit .env with your actual API Connect credentials -
Install dependencies:
npm i -
Run the development server:
npm run dev
Available Tools
platform.login
Logs in to IBM API Connect SaaS and returns token metadata.
Input: None (empty object)
Output Example:
{
"expires_in": 3600,
"token_preview": "eyJhbGciOiJ...",
"region": "platform-api.us-east-a.apiconnect.automation.ibm.com"
}
platform.draft_list
Lists all draft APIs in the API Connect organization.
Input: None (empty object)
Output Example:
{
"count": 5,
"drafts": [
{
"id": "api-id",
"name": "api-name",
"title": "API Title",
"version": "1.0.0",
"api_type": "rest"
}
]
}
platform.governance_scan
Runs governance rules (OWASP security scans) on a draft API.
Input:
{
"draft_id": "api-id",
"rule_set": "owasp"
}
platform.draft_import
Imports an API YAML from GitHub into API Connect as a draft API.
Input:
{
"github_url": "https://github.com/user/repo/blob/main/api.yaml",
"api_name": "optional-name",
"api_version": "optional-version"
}
Environment Variables
API Connect Configuration
APIC_BASE_URL: API Connect platform URLAPIC_ORG: Your organization nameAPIC_CLIENT_ID: OAuth client IDAPIC_CLIENT_SECRET: OAuth client secretAPIC_API_KEY: API key for authentication
Governance Service Configuration
GOV_ENDPOINT: Governance service endpoint URLGOV_CLIENT_ID: Governance service client IDGOV_CLIENT_SECRET: Governance service client secret
Scripts
npm run dev: Start development server with ts-nodenpm run build: Compile TypeScript to JavaScriptnpm start: Run compiled servernpm run typecheck: Type check without emitting files