ibmi-mcp
Give your AI Agent terminal access to your IBM i system via TN5250.
ibmi-mcp is an MCP server that lets AI Agents like Claude interact with IBM i the same way a human would through a 5250 green-screen terminal.
Installation
Install and register with Claude Code:
claude mcp add ibmi-5250 -- uvx ibmi-mcp
This requires the connection environment variables to be set in your shell profile. You can also pass them inline with -e flags:
claude mcp add ibmi-5250 \
-e IBMI_HOST=myhost.example.com \
-e IBMI_USER=myuser \
-e IBMI_PASSWORD=mypassword \
-- uvx ibmi-mcp
Configuration
| Variable | Description | Required | Default |
|---|---|---|---|
IBMI_HOST |
IBM i hostname or IP | Yes | — |
IBMI_PORT |
TN5250 port | No | 23 |
IBMI_SSL |
Enable TLS | No | false |
IBMI_USER |
Username for auto-signon | No | — |
IBMI_PASSWORD |
Password for auto-signon | No | — |
IBMI_DEVICE_NAME |
Virtual device name | No | — |
IBMI_CODEPAGE |
EBCDIC codepage | No | cp037 |
IBMI_TERMINAL_TYPE |
Terminal type | No | IBM-3179-2 |
IBMI_SSH_TUNNEL |
Tunnel TN5250 through SSH | No | false |
IBMI_SSH_PORT |
SSH port for file transfer and tunneling | No | 22 |
IBMI_SSH_KEY_FILE |
Path to SSH private key | No | — |
IBMI_SSH_KNOWN_HOSTS |
Path to known_hosts file | No | — |
When IBMI_USER and IBMI_PASSWORD are set, ibmi-mcp will automatically sign on when it detects a login screen after connecting.
Tools
| Tool | Description |
|---|---|
connect |
Connect to an IBM i system via TN5250 |
disconnect |
Disconnect the active session |
read_screen |
Read the current screen content and input fields |
send_keys |
Type text into the current input field |
send_key |
Send a function/attention key (Enter, F1-F24, PageUp, PageDown, Tab, etc.) |
set_cursor |
Position the cursor at a specific row and column |
upload_file |
Upload a file from the local system to the IBM i |
download_file |
Download a file from the IBM i to the local system |
Features
- Auto-signon — Automatically detects sign-on screens and logs in with configured credentials
- File transfer — Upload and download files to/from the IBM i IFS via SFTP
- SSH tunneling — Tunnel TN5250 through SSH when port 23 is not directly reachable
- Full key support — Enter, F1-F24, PageUp, PageDown, Tab, Backtab, Clear, Help, Print, Attn
- Local editing — Backspace, Delete, Field Exit, Home, and End handled locally for responsive editing
- Structured screen data — Returns screen text, cursor position, and input field metadata
- Configurable codepage — Supports EBCDIC codepage translation (default: CP037)
License
BSD 2-Clause. See LICENSE for details.
About Whitehorn Ltd. Co.
ibmi-mcp is developed and maintained by Whitehorn Ltd. Co., a legacy system modernization firm. We specialize in IBM i, RPG, COBOL, and midrange platforms. We help our clients protect what they can't afford to break while building a path forward.
Learn more about how Whitehorn Ltd. Co. can help you modernize your IBM midrange systems at whitehorn.ltd.
Metadata
Release files for ibmi-mcp 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ibmi_mcp-1.1.0.tar.gz | 30.5 kB | Without provenance | Details for ibmi_mcp-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ibmi_mcp-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for ibmi_mcp-1.1.0-py3-none-any.whl |
Total release size: 54.0 kB
Release files / ibmi_mcp-1.1.0.tar.gz
| Download URL | ibmi_mcp-1.1.0.tar.gz |
|---|---|
| Size | 30.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2293e71acf683cd8b3240d9b59bedaca4aa06932deba9814ed9fb7743b018cf9
|
|
BLAKE2b-256 checksum How to use checksums |
a59037b81f5d48539a4d3a84fea12c9400b302d95d746a77d4adb43681c2718b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ibmi_mcp-1.1.0-py3-none-any.whl
| Download URL | ibmi_mcp-1.1.0-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35ea162541d808172d7e2a129104aa3dc18ed0c61659aa5f002aa4ba99276cef
|
|
BLAKE2b-256 checksum How to use checksums |
92f1672412de9b9c205ed47de2264229e49042178054d33bed71faae06cb8fee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for ibmi-mcp 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.