Choose the Grok connector path
This workflow concerns the Grok conversation product at grok.com. xAI documents custom MCP connectors under Grok Connectors: go to grok.com/connectors, choose New Connector and Custom, enter the server URL, and complete the supported authentication flow. On Grok Business or Enterprise, an administrator provisions the connector in the team cloud console first. You add IRIS as a custom connector; it is not one of xAI’s built-in connectors.
The xAI developer API at api.x.ai is a different route for building your own application with Grok models. An xAI API key is not an IRIS API key; your application calls IRIS with its own key. For an occasional letter, let Grok draft it, export and review a final US Letter PDF, and upload it at IRIS’s /letters/send. No connector needed, and one black-and-white page costs $3.49 with postage included.
Connect only a reachable, appropriately scoped server
IRIS documents https://api.irispostalforms.com/mcp as a remote Streamable HTTP endpoint. Every MCP request needs an account-bound IRIS bearer API key with account:read. Preparation also needs documents:write for upload requests and registration, and mailings:read for quotes. Do not give a preparation connector mailings:write: that additional scope permits create-mailing, which charges credits and releases fulfillment.
xAI requires a public server URL and documents New Connector > Custom followed by authentication. Its public instructions mention OAuth and API keys but do not show how to configure the Authorization: Bearer header IRIS requires. This article therefore does not provide a verified Grok-to-IRIS connector configuration. Proceed with the MCP steps only after your account or organization confirms that authentication works. Otherwise, use Grok for drafting and upload the reviewed PDF on the IRIS website, or build a trusted application against the documented IRIS REST API. Keep credentials out of URLs, chat prompts, browser code and screenshots.
Move the finished PDF with trusted local code
Finish the letter from verified facts and export a readable, unencrypted US Letter PDF. Open the final file and inspect every page. Grok’s conversation or an MCP create-document-upload result does not, by itself, transfer local PDF bytes to IRIS. From trusted software with access to the file, request a private upload using its exact filename, byte length, and kind letter; PUT those bytes to the returned uploadUrl within its expiry with every returned uploadHeaders value; verify that PUT succeeded; then register the returned key and save the immutable document ID. Do not send the IRIS bearer key to the storage upload URL, and keep the presigned URL private.
This local handoff can use IRIS REST even if Grok later uses the MCP quote-mailing tool. Give Grok only the registered document ID and the minimum approved address and options data needed to request a quote. A revised PDF is a different document: upload, register, quote, and review it again rather than reusing an earlier document ID or approval.
Ask Grok for a quote, then stop
Supply a complete sender and recipient address from your authoritative records, the registered document ID, and explicit letter options. IRIS quote-mailing takes a complete mailing object and requires mailings:read. It returns a price in US cents; a quote does not spend credits, reserve that price, or submit mail. The following prompt is for preparation after the trusted PDF upload, not a command to read a local file or create an order.
Use the IRIS connector only to prepare one US letter mailing.
The final PDF has already been uploaded and registered by my trusted local workflow; its document ID is [REGISTERED_DOCUMENT_ID].
Use only the sender, recipient and letter options I explicitly provide. Do not invent or complete missing address fields.
Check the account balance and request a quote for the complete mailing object.
Show the document ID, both full addresses, all print options and quoted total in US cents for my review.
Do not call create-mailing, submit an order, or claim the letter has been sent. Stop and ask for human review.Make the paid mailing a separate human decision
Before submission, a person opens the actual PDF (not only Grok’s summary) and verifies every page, sender and recipient address, print options, current quote, and authority to send. Confirm available credits and correct any mismatch; obtain a fresh quote if the payload changes or submission is delayed.
After approval, a trusted submission workflow with mailings:write creates the mailing using the exact approved payload and one durably saved idempotency key for that intended letter. Preserve the resulting order ID; if a response is uncertain, retry with the same key and unchanged payload rather than generating another key, and read status using the order ID. IRIS prints the letter and hands it to USPS First-Class Mail; USPS lists 1–5 business days once it is in the mail. Keeping mailings:write off the preparation connector makes the review step concrete.
Sources & further reading
- xAI: Grok Connectors and custom MCP servers
- xAI: Grok Business and Enterprise connector management
- xAI: Custom MCP server tunneling and authentication
- xAI: Developer API overview
- IRIS API documentation and current limits
- IRIS OpenAPI contract
Published by IRIS Postal Forms, operated by Great Lakes Computing Office LLC. Spotted something out of date? Send a correction.
