RS.ge Waybill MCP Server
Enables natural language queries for Georgian tax system waybills through the RS.ge SOAP API. Supports waybill retrieval by date range, company TIN lookups, and access to tax system dictionaries.
README
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
- Quick Start
- Features
- Documentation
- Installation
- Configuration
- Usage Examples
- Troubleshooting
- Development
- Project Structure
🚀 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 MCPWaybill -
Install Dependencies
npm install -
Configure Environment
cp .env.example .envEdit
.env:RS_SERVICE_USER=4053098841:405309884 RS_SERVICE_PASSWORD=YourPasswordHere -
Build
npm run build -
Configure 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=info
Config 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.json - Verify
dist/index.jsexists - Restart Claude Desktop completely
- Check Developer Tools (View → Toggle Developer Tools)
Authentication Errors
- Verify credentials in
.env - Check format:
username:company_id - Ensure no spaces:
RS_SERVICE_USER=value(notRS_SERVICE_USER = value)
Tools Not Working
- Check logs:
tail -f logs/mcp-server.log - Test 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 changes
Project 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/ # Utilities
Key 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 | get_waybills_v1 |
get_waybills |
| Date Param | last_update_date_s/e |
create_date_s/e |
| Date Format | YYYY-MM-DD |
YYYY-MM-DDTHH:MM:SS |
| End Date | As-is | Add +1 day |
| Seller ID | Not included | Extract from credentials |
| ID Field | WAYBILL_ID |
ID |
XML Parsing
- Filter out
@_attributes before extracting data - Handle 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。