Client Integration Overview
The IBM i MCP Server can be integrated into any MCP-compatible client using either local (stdio) or remote (HTTP) connections. This guide provides an overview of supported clients and helps you choose the right integration approach.Prerequisites: Before integrating with clients, ensure you have:
- IBM i MCP Server installed and built (
npm install && npm run build) - Mapepire running on your IBM i system (see Setup Mapepire)
- Your IBM i connection details (host, user, password, port)
Supported MCP Clients
The IBM i MCP Server works with popular MCP-compatible clients across different platforms:Claude Desktop
Official desktop app for macOS and Windows
Claude Code
CLI tool with server management commands
IBM Bob
IBM’s AI-powered development assistant
VSCode
GitHub Copilot Chat integration
Cursor
AI-first code editor
Gemini CLI
Google AI command-line integration
Cline
VSCode extension for AI development
Transport Modes
The IBM i MCP Server supports two transport protocols:- Stdio (Local)
- HTTP (Remote)
Standard Input/Output - Direct process communicationCharacteristics:
- Runs locally on your machine
- Lower latency
- No network configuration needed
- Each client spawns its own server process
- Desktop applications (Claude Desktop, Cursor)
- CLI tools (Claude Code)
- Development and testing
- Single-user scenarios
- Server must be installed locally
- Absolute path to tools directory
- Environment variables in client config
Client Comparison
| Client | Platform | Stdio | HTTP | Authentication | Notes |
|---|---|---|---|---|---|
| Claude Desktop | macOS, Windows | ✅ | ❌ | N/A | Official desktop app (stdio only) |
| Claude Code | CLI | ✅ | ✅ | Bearer Token | CLI server management |
| IBM Bob | IDE | ✅ | ✅ | Bearer Token | IBM’s AI assistant (6,000+ users) |
| VSCode | Editor | ✅ | ✅ | Bearer Token | Via Copilot Chat |
| Cursor | Editor | ✅ | ✅ | Bearer Token | AI-first code editor |
| Gemini CLI | CLI | ✅ | ✅ | Bearer Token | Google AI integration |
| Cline | VSCode Ext | ✅ | ✅ | Bearer Token | streamableHttp support |
Setup Prerequisites
For Local (Stdio) Setup
- NPM Package (Recommended)
- Build from Source
The easiest way to get started - no installation needed!
-
Verify npx is available:
-
Test the package:
-
Note your tools path:
- Must be an absolute path
- Example:
/Users/yourname/myproject/tools - Or use
--tools $(pwd)/toolsfor relative paths
- ✅ Always up-to-date with latest stable release
- ✅ No build step required
- ✅ Works across all clients (Claude Desktop, VSCode, Cursor)
- ✅ Automatic dependency management
For Remote (HTTP) Setup
-
Configure server for HTTP with authentication:
-
Generate RSA keypair (for IBM i auth):
-
Start the server:
-
Obtain access token:
Authentication Methods
No Authentication (Development Only)
No Authentication (Development Only)
IBM i HTTP Authentication (Recommended)
IBM i HTTP Authentication (Recommended)
- Secure RSA+AES encryption
- Per-user connection pools
- Token-based access
- IBM i credential validation
JWT Authentication
JWT Authentication
OAuth Authentication
OAuth Authentication
Common Configuration Patterns
Next Steps
- Choose your client from the list above
- Follow the specific setup guide for your chosen client
- Configure authentication if using remote (HTTP) mode
- Test the connection by listing available tools
- Start building with SQL tools and agents
For detailed setup instructions, click on any client card above or navigate using the sidebar. Each client has unique configuration requirements and capabilities.
Troubleshooting
Connection Refused
Connection Refused
- Verify server is running:
ps aux | grep ibmi-mcp-server - Check
npm linkworked:which ibmi-mcp-server - Ensure
TOOLS_YAML_PATHis an absolute path - Verify IBM i credentials are correct
Authentication Failed (Remote)
Authentication Failed (Remote)
- Confirm server is running with
IBMI_HTTP_AUTH_ENABLED=true - Verify token is valid:
echo $IBMI_MCP_ACCESS_TOKEN - Check server logs for authentication errors
- Ensure HTTPS is used in production
Tools Not Loading
Tools Not Loading
- Validate YAML configuration:
npm run validate -- --config tools - Check file permissions on tools directory
- Use
--list-toolsetsto see available tools - Review server startup logs for parsing errors
npx Command Not Found
npx Command Not Found
Use direct node path instead:
Additional Resources
- Configuration Reference - All environment variables
- IBM i Authentication - Secure token setup
- Quick Start Guide - Basic server setup
- SQL Tools - Creating custom tools