Connect an AI agent to LogiRates
Claude, ChatGPT, Cursor and other AI agents can get rates, find shipments and buy labels in your account through MCP. The agent is told to ask you before every purchase.
Server URL: https://logirates.com/mcp
What is MCP
MCP (Model Context Protocol) is an open standard for connecting AI agents to outside services. The LogiRates MCP server works on top of the LogiRates API, with the same permissions and limits.
With it, an agent can:
- get UPS, USPS and FedEx rates with additional services and insurance, and check an address with the carrier
- find shipments, read tracking and report a problem with a package
- read, edit and delete contacts in your address book
- save shipment templates and ship from them
- download label PDFs, receipts and statements
- read help center articles to explain how LogiRates works
- see your balance and transactions, if you have access to Finances
- buy and cancel labels, if you allow purchases
Claude Code and Cursor
These agents connect with an MCP key.
- Open Settings → Integrations and choose Create key.
- Select MCP and confirm with your password, plus the 2FA code if it is on.
- Copy the key. It starts with lrm_ and is shown only once.
- Add the server to your agent as shown below.
Claude Code
Run in a terminal:
claude mcp add --transport http logirates https://logirates.com/mcp \
--header "Authorization: Bearer lrm_your_key"Cursor
Add the server to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"logirates": {
"url": "https://logirates.com/mcp",
"headers": {
"Authorization": "Bearer lrm_your_key"
}
}
}
}Other agents that support remote MCP servers connect the same way: the server URL plus the header Authorization: Bearer and your key.
claude.ai and ChatGPT
These apps connect through OAuth. You sign in to LogiRates and approve the connection, so you do not need to copy a key.
Claude
- In Claude, open Customize → Connectors, choose Add, then Add custom connector.
- Paste the server URL and add the connector.
- Sign in to LogiRates and approve the connection.
The connector then also works in Claude Desktop and the Claude mobile apps.
ChatGPT
- Turn on developer mode in ChatGPT settings. ChatGPT renames its menus from time to time; if you cannot find the switch, search the ChatGPT help for developer mode.
- Add a custom MCP server with the server URL and choose OAuth.
- Sign in to LogiRates and approve the connection.
The approval page shows the app name and its website. There you can allow purchases and set a daily limit.
Each connection appears in Settings → Integrations as a key marked Connected through OAuth. After 90 days you approve it again.
Tools
Tool names start with logirates_. An agent sees only the tools that your permissions allow.
| Group | Tools | What they do |
|---|---|---|
| Account | logirates_get_account | Account, balance and the purchase limit of the key |
| Help center | logirates_search_helplogirates_get_help_article | Help center articles, so the agent can explain how LogiRates works |
| Rates and addresses | logirates_search_citieslogirates_validate_addresslogirates_find_locationslogirates_list_carrierslogirates_list_carrier_serviceslogirates_get_tariff_infologirates_get_rateslogirates_get_bulk_rates | Cities and ZIP codes, address checks, drop-off locations, carriers and their services, rates with services and insurance for one package or a batch of up to 100 |
| Shipments | logirates_list_shipmentslogirates_get_shipmentlogirates_get_shipment_trackinglogirates_get_shipment_labellogirates_send_shipment_labellogirates_list_shipment_problemslogirates_report_shipment_problem | Search, details, label PDFs, tracking events and problem reports |
| Bulk shipments | logirates_list_bulk_shipmentslogirates_get_bulk_shipment | Batches and the labels in them |
| Address book | logirates_list_contactslogirates_get_contactlogirates_create_contactlogirates_update_contactlogirates_delete_contactlogirates_set_contact_favorite | Saved senders and recipients: add, edit, delete and mark favorites |
| Templates | logirates_list_templateslogirates_get_templatelogirates_create_templatelogirates_update_templatelogirates_delete_template | Saved shipment templates: sender, recipient, package and tariff |
| Finances | logirates_list_transactionslogirates_get_transactionlogirates_get_transaction_receiptlogirates_get_statement | Payments, refunds and top-ups with the balance after each one, PDF receipts and statements for a period. Needs access to Finances |
| Purchases | logirates_prepare_shipmentlogirates_buy_shipmentlogirates_cancel_shipmentlogirates_prepare_bulk_shipmentlogirates_buy_bulk_shipment | Buying and cancelling labels. If purchases are off, these tools refuse and say where to turn them on |
How a purchase works
Buying takes two steps.
- The agent calls a prepare tool and gets the price, the route and a confirmation code that works for 10 minutes.
- The agent shows you this summary and calls the buy tool only after you agree.
- If the price changed in the meantime, the purchase stops and the agent asks you again.
If the agent repeats a buy call with the same confirmation code, it gets the same label and you pay once. Labels are paid like API purchases, from your LogiRates balance and your default card.
Security
- A new key cannot buy. To allow purchases, set a daily limit (100 USD by default). An MCP key always has a limit.
- The limit resets at 00:00 UTC. A purchase that goes over what is left is refused.
- A key usually gets up to 120 tool calls a minute. Rates have a lower limit, as in the API.
- To disconnect an agent, revoke its key in Settings → Integrations. OAuth access ends at the same moment.
- The agent sees what you see in your account with your permissions: shipments, the address book, and your balance and transactions if you have access to Finances. It can download label PDFs. It does not get your full card number.
- Names, addresses and carrier messages reach the agent as data. LogiRates tells the agent never to follow instructions found in them.
- Keep the key secret, like a password. Do not paste it into a chat or commit it to a repository.
Examples
Things you can ask your agent:
- "How much is it to send a 3 lb box, 12 × 10 × 6 in, from New York 10001 to Austin 78701?"
- "Which of my shipments are still in transit?"
- "Ship the Weekly to LA template again and send me the label."
- "Change the phone number of Grace Harris in my address book to 303 555 0142."
- "Buy the cheapest UPS label for this box to Ella Collins." The agent shows the price first and waits for your answer.
- "How much did I spend on labels last month?"
