Quick Start Guide
Get your IBM i MCP Server up and running in under 15 minutes. This guide walks you through installation, configuration, and your first successful tool execution.Prerequisites: You’ll need access to an IBM i system with appropriate database authorities and Node.js 18+ installed on your development machine.
Step 1: Installation
Clone the repository and install dependencies:Use
npm run rebuild
for a clean install if you encounter any issues.Step 2: Configuration
Create your environment configuration:.env
file with your IBM i connection details:
Replace the connection values with your actual IBM i system credentials. The user profile must have appropriate authorities for database operations.
Need to set up Mapepire? If you don’t have Mapepire running on your IBM i system yet, follow our Setup Mapepire guide to install and configure the database connectivity layer.
Step 3: Start the Server
Launch the MCP server in HTTP mode:Step 4: Test with MCP Inspector
The easiest way to test your server is with the MCP Inspector tool. Create the inspector configuration:mcp.json
with your connection details:
http://localhost:6274
).
Step 5: Execute Your First Tool
In the MCP Inspector:-
View Available Tools: You should see several IBM i tools like
system_status
,active_job_info
, etc. -
Execute a Tool: Click on
system_status
and then “Execute Tool” - View Results: You should see IBM i system performance data returned as JSON
Example system_status output
Example system_status output
Step 6: Build an Agent
Test with the included Python agent examples:system_status
tool, returning a natural language summary of your IBM i system performance.
Next Steps
SQL Tools
Learn how to create custom SQL operations using YAML configurations
Configuration
Explore all configuration options and environment variables
Agent Development
Build sophisticated AI agents that understand IBM i concepts
Production Deployment
Deploy to production with authentication and monitoring
Troubleshooting
Connection Refused
Connection Refused
- Verify your IBM i host is reachable:
ping your-ibmi-host
- Check that the Mapepire daemon is running on port 8076
- Ensure your user profile has database authorities
Authentication Failed
Authentication Failed
- Verify your IBM i username and password are correct
- Check that your user profile is not disabled or expired
- Ensure you have appropriate authorities for QSYS2 services
Port Already in Use
Port Already in Use
Change the port in your Then restart the server.
.env
file:Tools Not Loading
Tools Not Loading
- Check that
prebuiltconfigs/
directory exists - Verify your YAML tool configurations are valid
- Use
--list-toolsets
to see available tools:
Completion Time: This quickstart should take 10-15 minutes depending on your IBM i system response times. If you encounter issues, check the configuration guide or review the troubleshooting section above.