RS.ge Waybill MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RS.ge Waybill MCP Server show me waybills from last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RS.ge Waybill MCP Server
MCP (Model Context Protocol) server that integrates the RS.ge Waybill SOAP API with Claude Desktop, enabling natural language queries for Georgian tax system waybills.
📋 Table of Contents
Related MCP server: rs-mcp
🚀 Quick Start
# 1. Install dependencies
npm install
# 2. Configure credentials
cp .env.example .env
# Edit .env with your RS.ge credentials
# 3. Build
npm run build
# 4. Configure Claude Desktop
# Windows: %APPDATA%\Claude\claude_desktop_config.json
# Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
# Add to config:
{
"mcpServers": {
"rs-waybill": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_PROJECT/dist/index.js"]
}
}
}
# 5. Restart Claude Desktop
# 6. Test in Claude
"Show me waybills from October 19-21, 2025"✨ Features
✅ Natural Language Interface - Query waybills through Claude chat
✅ Date Range Queries - Get waybills for specific periods
✅ TIN Lookup - Get company names from Tax IDs
✅ Dictionaries - Access error codes, akciz codes, waybill types
✅ Type-Safe - Full TypeScript with strict typing
✅ Error Handling - Automatic retries and detailed logging
✅ Production Ready - Tested with real RS.ge API
📚 Documentation
Comprehensive guides in the docs/ folder:
For Users
Setup & Deployment Guide - Installation, configuration, troubleshooting
For Developers
Project Documentation - Architecture, components, data flow
RS.ge API Best Practices - Critical lessons learned and correct API patterns
MCP Development Guide - How to build MCP servers
📦 Installation
Prerequisites
Setup Steps
Get the Code
git clone <repository-url> MCPWaybill cd MCPWaybillInstall Dependencies
npm installConfigure Environment
cp .env.example .envEdit
.env:RS_SERVICE_USER=4053098841:405309884 RS_SERVICE_PASSWORD=YourPasswordHereBuild
npm run buildConfigure Claude Desktop
Edit
claude_desktop_config.json:{ "mcpServers": { "rs-waybill": { "command": "node", "args": [ "C:\absolute\path\to\MCPWaybill\dist\index.js" ] } } }⚠️ Important: Use absolute paths!
Restart Claude Desktop (quit completely, then restart)
⚙️ Configuration
Environment Variables
Create .env file:
# Required
RS_SERVICE_USER=username:company_id
RS_SERVICE_PASSWORD=your_password
# Optional
LOG_LEVEL=infoConfig File
Edit config/config.json for advanced settings:
{
"api": {
"timeout": 30000,
"retries": 3
},
"logging": {
"level": "info",
"console": true
}
}💬 Usage Examples
Get Waybills
User: Show me waybills from October 19-21, 2025
Claude: I'll retrieve those waybills for you.
[Uses rs_get_waybills tool]
Found 61 waybills:
- October 19: 12 waybills
- October 20: 32 waybills
- October 21: 17 waybills
...Lookup Company
User: What company has TIN 405309884?
Claude: [Uses rs_lookup_tin tool]
Company: შპს თეისთიGet Error Codes
User: Show me RS.ge error codes
Claude: [Uses rs_get_error_codes tool]
Error codes:
- -1072: Date range issue
- -101: Missing seller_un_id
...🛠️ Troubleshooting
Server Not Showing in Claude
Check absolute path in
claude_desktop_config.jsonVerify
dist/index.jsexistsRestart Claude Desktop completely
Check Developer Tools (View → Toggle Developer Tools)
Authentication Errors
Verify credentials in
.envCheck format:
username:company_idEnsure no spaces:
RS_SERVICE_USER=value(notRS_SERVICE_USER = value)
Tools Not Working
Check logs:
tail -f logs/mcp-server.logTest with: "Show waybills from yesterday"
Verify date format: YYYY-MM-DD
See Troubleshooting Guide for detailed help.
👨💻 Development
Scripts
npm run build # Compile TypeScript
npm run dev # Build and run
npm run watch # Auto-rebuild on changesProject Structure
src/
├── index.ts # MCP server entry point
├── config/ # Configuration management
├── services/ # RS.ge API client & XML parsing
│ ├── soap-client.ts # SOAP API client
│ └── xml-parser.ts # XML handling
├── tools/ # MCP tools
│ ├── get-waybills.ts
│ ├── get-dictionaries.ts
│ └── lookup-tin.ts
├── types/ # TypeScript types
└── utils/ # UtilitiesKey Technologies
@modelcontextprotocol/sdk - MCP framework
Axios - HTTP client
fast-xml-parser - XML parsing
Winston - Logging
Zod - Validation
🎯 Critical Lessons Learned
This project solved complex RS.ge API integration challenges:
Correct API Usage
Aspect | ❌ Wrong | ✅ Correct |
Operation |
|
|
Date Param |
|
|
Date Format |
|
|
End Date | As-is | Add +1 day |
Seller ID | Not included | Extract from credentials |
ID Field |
|
|
XML Parsing
Filter out
@_attributes before extracting dataHandle both single and array responses
See RS_GE_API_BEST_PRACTICES.md for complete details.
📄 License
MIT License - See LICENSE file for details
🤝 Contributing
Fork the repository
Create feature branch
Make changes
Test thoroughly
Submit pull request
📞 Support
Documentation: docs/
Issues: GitHub Issues
Questions: Check docs first
🏆 Acknowledgments
Anthropic - Claude Desktop and MCP SDK
RS.ge - Waybill SOAP API
Community - Testing and feedback
Version: 1.0.0
Status: Production Ready ✅
Last Updated: January 2025
Built with ❤️ using TypeScript and MCP SDK
Available Tools
5 toolsget_akciz_codesB
Get akciz (excise) codes from RS.ge system. Optionally filter by search text.
Inputs: search.
get_error_codesB
Get all error codes and their descriptions from RS.ge system
Inputs: no named parameters.
get_waybillsB
Get waybills from RS.ge for a specific date range. Returns all waybills created within the specified dates. Can optionally filter by buyer TIN.
Inputs: start_date (required), end_date (required), buyer_tin.
get_waybill_typesB
Get all available waybill types from RS.ge system
Inputs: no named parameters.
lookup_tinB
Look up a company or person name from their TIN (Tax Identification Number) in the RS.ge system.
Inputs: tin (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose targeting different resources or actions in the RS.ge system: retrieving excise codes, error codes, waybills, waybill types, and TIN lookups. There is no overlap in functionality, making it easy for an agent to select the correct tool without confusion.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., get_akciz_codes, get_error_codes, get_waybills, get_waybill_types, lookup_tin). The verbs 'get' and 'lookup' are appropriately chosen for their actions, maintaining predictability and readability throughout the set.
With 5 tools, the server is well-scoped for its purpose of interacting with the RS.ge waybill system. Each tool serves a specific, necessary function without redundancy, making the count appropriate for the domain and avoiding either excessive or insufficient coverage.
The tool set provides comprehensive read operations for the RS.ge domain, covering key resources like waybills, codes, and TIN lookups. A minor gap exists in the lack of write operations (e.g., creating or updating waybills), but agents can still perform essential retrieval tasks effectively.
Related MCP Connectors
Ecuador factura electronica for AI agents - issue and query SRI e-invoices via Datil. Stateless BYO.
Chile DTE for AI agents - boleta/factura electronica via OpenFactura or LibreDTE. Stateless BYO.
Peru CPE invoices for AI agents - issue, query, void facturas/boletas via SUNAT (2 backends).
Emite facturas, notas y retenciones del SRI de Ecuador con lenguaje natural.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates with the Turkish Revenue Administration (GİB) e-Arşiv Fatura system to manage e-invoices via natural language. Users can list, search, create, and cancel invoices, as well as validate Turkish tax numbers and retrieve UBL-TR format XML data.4MIT
- FlicenseCqualityDmaintenanceMCP server that exposes Georgia's Revenue Service SOAP APIs (WayBill, Invoice, TaxPayer) as AI-callable tools for querying and managing tax documents.879-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to issue Greek myDATA electronic invoices (τιμολόγιο) to the AADE platform, returning the official MARK. Supports creating and querying invoices with automatic VAT handling.MIT
- AlicenseNot gradedqualityDmaintenanceProvides a read-only tool to query SINTEGRA RS (Brazilian state tax registration) data from official sources via natural language. It is a hosted, pay-per-use service.MIT