Skip to main content

A MCP server for Setu KYC APIs providing PAN, GST, and name matching verification

Project description

Setu KYC MCP server

A MCP server project for Setu KYC APIs that provides verification tools for PAN, GST, and name matching.

Components

Tools

The server implements three verification tools using Setu's Digital Gateway APIs:

  1. verify-pan: Verify PAN card details

    • Required inputs:
      • pan: PAN card number
      • reason: Purpose of verification
  2. verify-gst: Verify GST registration

    • Required input:
      • gstin: GST identification number
  3. match-names: Compare two names for similarity

    • Required inputs:
      • name1: First name to compare
      • name2: Second name to compare
    • Returns both optimistic and pessimistic match results with percentages

Configuration

The server requires the following environment variables:

# Setu Digital Gateway Credentials
SETU_DG_CLIENT_ID=your-client-id
SETU_DG_CLIENT_SECRET=your-client-secret

# Product Instance IDs for different services
SETU_DG_PAN_PRODUCT_INSTANCE_ID=your-pan-instance-id
SETU_DG_GST_PRODUCT_INSTANCE_ID=your-gst-instance-id
SETU_DG_NAME_MATCH_PRODUCT_INSTANCE_ID=your-name-match-instance-id

Quickstart

Install

pip install setu_mcp_kyc

Claude Desktop Configuration

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development Configuration
"mcpServers": {
  "setu_mcp_kyc": {
    "command": "uv",
    "args": [
      "--directory",
      "/path/to/setu_mcp_kyc",
      "run",
      "setu_mcp_kyc"
    ],
    "env": {
      "SETU_DG_CLIENT_ID": "your-client-id",
      "SETU_DG_CLIENT_SECRET": "your-client-secret",
      "SETU_DG_PAN_PRODUCT_INSTANCE_ID": "your-pan-instance-id",
      "SETU_DG_GST_PRODUCT_INSTANCE_ID": "your-gst-instance-id",
      "SETU_DG_NAME_MATCH_PRODUCT_INSTANCE_ID": "your-name-match-instance-id"
    }
  }
}
Production Configuration
"mcpServers": {
  "setu_mcp_kyc": {
    "command": "uvx",
    "args": [
      "setu_mcp_kyc"
    ],
    "env": {
      "SETU_DG_CLIENT_ID": "your-client-id",
      "SETU_DG_CLIENT_SECRET": "your-client-secret",
      "SETU_DG_PAN_PRODUCT_INSTANCE_ID": "your-pan-instance-id",
      "SETU_DG_GST_PRODUCT_INSTANCE_ID": "your-gst-instance-id",
      "SETU_DG_NAME_MATCH_PRODUCT_INSTANCE_ID": "your-name-match-instance-id"
    }
  }
}

Development

Building and Publishing

  1. Sync dependencies:
uv sync
  1. Build package:
uv build
  1. Publish to PyPI:
uv publish

Debugging

For debugging, use the MCP Inspector:

npx @modelcontextprotocol/inspector uv --directory /path/to/setu_mcp_kyc run setu_mcp_kyc

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

setu_mcp_kyc-0.1.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

setu_mcp_kyc-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file setu_mcp_kyc-0.1.1.tar.gz.

File metadata

  • Download URL: setu_mcp_kyc-0.1.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.21

File hashes

Hashes for setu_mcp_kyc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a6985801446cb17799395eaca488e3ce6c6cbb4996c0cf15c1851db0fc8deba6
MD5 c3dc9cbd485816e58f02858412d4b853
BLAKE2b-256 ad081ce26d7a36d0b1a8a8fa187f9627f4b200ad8d6dab8c93fcbc9393848a4a

See more details on using hashes here.

File details

Details for the file setu_mcp_kyc-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for setu_mcp_kyc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c59d93ea902b0f2dfca992011a8a716144c781e35d6c3e5c31dc5380a912ec51
MD5 4869e7eb3c0d5b0b0f98d5b8cbbf9de4
BLAKE2b-256 80796bd5d8eb4de1f1bd9dfc731d0ed422df6099c4a7c10b9eb15add5384d021

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page