Absher Voice Assistant MCP Server

Absher Voice Assistant MCP Server

Enables interaction with Saudi government services through the Absher platform, supporting identity verification, user profile management, and service discovery. It allows users to perform tasks like renewing passports, querying traffic fines, and booking appointments using natural language.

Category
访问服务器

README

Absher Voice Assistant MCP Server

Standalone MCP (Model Context Protocol) server for Saudi government services (Absher platform).

Overview

This MCP server provides 8 tools for handling authentication, user data, and government services:

Authentication & Identity Tools (3)

  1. verify_national_id - Check if a national ID exists in the system
  2. get_security_questions - Fetch security questions for user verification
  3. verify_security_answers - Verify user's answers to security questions

User Data Tool (1)

  1. get_user_data - Load complete user profile information

Service Discovery Tool (1)

  1. get_service_requirements - Get required fields for a specific service

Service Execution Tools (3)

  1. renew_passport - Submit passport renewal request
  2. get_traffic_fines - Query traffic violations
  3. book_appointment - Schedule government office appointment

Installation

# Install dependencies
pip install -r requirements.txt

Running the Server

Standalone Mode (for testing)

python absher_server.py

With MCP Client (recommended)

Use with any MCP-compatible client (Claude Desktop, custom clients, etc.)

Example configuration for Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "absher": {
      "command": "python",
      "args": ["/path/to/mcp-servers/absher_server.py"]
    }
  }
}

Mock Data

The server includes 3 test users:

User 1

  • National ID: 1234567890
  • Name: أحمد محمد
  • Passport: A12345678
  • Traffic Fines: 2 unpaid fines (650 SAR total)
  • Security Question: ما هو اسم مدينة ميلادك? → الرياض

User 2

  • National ID: 0987654321
  • Name: فاطمة أحمد
  • Passport: B98765432
  • Traffic Fines: 1 paid fine
  • Security Question: ما هو اسم مدينة ميلادك? → جدة

User 3

  • National ID: 1122334455
  • Name: خالد عبدالله
  • Passport: C11223344
  • Traffic Fines: None
  • Security Question: ما هو اسم مدينة ميلادك? → الدمام

Tool Usage Examples

1. Verify National ID

verify_national_id(national_id="1234567890")
# Returns: {"exists": true, "message": "تم العثور على رقم الهوية الوطنية في النظام"}

2. Get Security Questions

get_security_questions(national_id="1234567890")
# Returns: {"success": true, "questions": [{"question_id": "q1", "question": "ما هو اسم مدينة ميلادك؟"}]}

3. Verify Security Answers

verify_security_answers(
    national_id="1234567890",
    answers=[{"question_id": "q1", "answer": "الرياض"}]
)
# Returns: {"verified": true, "message": "تم التحقق من هويتك بنجاح"}

4. Get User Data

get_user_data(national_id="1234567890")
# Returns: Complete user profile with name, phone, passport info, etc.

5. Get Service Requirements

get_service_requirements(service_name="passport_renewal")
# Returns: List of required fields with sources (user_data vs user_input)

6. Renew Passport

renew_passport(
    national_id="1234567890",
    renewal_reason="انتهاء الصلاحية",
    delivery_method="استلام من المكتب"
)
# Returns: {"success": true, "request_id": "PR20241208123456", "message": "..."}

7. Get Traffic Fines

get_traffic_fines(national_id="1234567890")
# Returns: List of fines with summary (total, unpaid, amount)

8. Book Appointment

book_appointment(
    national_id="1234567890",
    service_type="الجوازات",
    location="الرياض",
    preferred_date="2024-12-15"
)
# Returns: {"success": true, "appointment_id": "APT20241208123456", "details": {...}}

Authentication Flow (as per new_flow.txt)

  1. Identity Check: Call verify_national_id with user's national ID
  2. Security Questions: Call get_security_questions to fetch questions
  3. Security Verification: Ask user questions one-by-one, then call verify_security_answers
  4. Load User Data: Call get_user_data after successful verification
  5. Service Selection: User chooses a service
  6. Requirements Check: Call get_service_requirements to see what's needed
  7. Data Collection: Ask for missing information one question at a time
  8. Confirmation: Show summary and ask for confirmation
  9. Execution: Call service tool (renew_passport, get_traffic_fines, book_appointment)
  10. Confirmation: Return success message to user

Service Requirements

Passport Renewal

Required from user_data: national_id, first_name, last_name, phone, passport_number Required from user_input: renewal_reason, delivery_method

renewal_reason options:

  • انتهاء الصلاحية
  • تلف
  • ضياع
  • امتلاء الصفحات

delivery_method options:

  • استلام من المكتب
  • توصيل بالبريد

Traffic Fines

Required from user_data: national_id

Book Appointment

Required from user_data: national_id Required from user_input: service_type, location, preferred_date

service_type options:

  • الجوازات
  • الأحوال المدنية
  • المرور

location options:

  • الرياض
  • جدة
  • الدمام

Files

  • absher_server.py - Main MCP server with all 8 tools
  • mock_data.py - Mock users, fines, appointments, and service requirements
  • requirements.txt - Python dependencies
  • README.md - This file

Integration with AI Clients

This MCP server is designed to work with any MCP-compatible AI client:

  • Claude Desktop: Add to config file
  • OpenAI Realtime API: Use with custom MCP client bridge
  • Ollama: Use with mcp_client.py bridge
  • Custom Clients: Any client that supports MCP protocol

The server is fully independent and stateless - all data is in mock_data.py.

Notes

  • All responses are in Arabic with English function names
  • Server uses stdio transport (standard MCP approach)
  • All tools return JSON strings for easy parsing
  • Mock data can be easily extended or replaced with real database

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选