MCP server for 국세청 사업자등록정보 진위확인 및 상태조회 서비스
Project description
NTS Business Verification MCP Server
국세청 사업자등록정보 진위확인 및 상태조회 서비스
Overview
This MCP server provides access to the NTS (National Tax Service) Business Registration Verification API from Korea's data.go.kr portal through the Model Context Protocol. It allows you to verify business registration information authenticity and check business registration status.
Installation
Via PyPI
pip install data-go-mcp.nts-business-verification
Via UV
uvx data-go-mcp.nts-business-verification
Configuration
Getting an API Key
- Visit data.go.kr
- Sign up for an account
- Search for "국세청_사업자등록정보 진위확인 및 상태조회 서비스" API
- Apply for API access
- Get your service key from the API management page
Environment Setup
Set your API key as an environment variable:
export API_KEY="your-api-key-here"
Claude Desktop Configuration
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Option 1: Install from PyPI (when published)
{
"mcpServers": {
"data-go-mcp.nts-business-verification": {
"command": "uvx",
"args": ["data-go-mcp.nts-business-verification@latest"],
"env": {
"API_KEY": "your-api-key-here"
}
}
}
}
Option 2: Local Development Setup
For local development, use the virtual environment Python directly:
{
"mcpServers": {
"nts-business-verification": {
"command": "/path/to/your/project/.venv/bin/python",
"args": [
"-m",
"data_go_mcp.nts_business_verification.server"
],
"cwd": "/path/to/your/project/src/nts-business-verification",
"env": {
"API_KEY": "your-api-key-here",
"PYTHONPATH": "/path/to/your/project/src/nts-business-verification"
}
}
}
}
Example for macOS:
{
"mcpServers": {
"nts-business-verification": {
"command": "/Users/username/github/data-go-mcp-servers/.venv/bin/python",
"args": [
"-m",
"data_go_mcp.nts_business_verification.server"
],
"cwd": "/Users/username/github/data-go-mcp-servers/src/nts-business-verification",
"env": {
"API_KEY": "your-api-key-here",
"PYTHONPATH": "/Users/username/github/data-go-mcp-servers/src/nts-business-verification"
}
}
}
}
Example for Windows:
{
"mcpServers": {
"nts-business-verification": {
"command": "C:\\Users\\username\\github\\data-go-mcp-servers\\.venv\\Scripts\\python.exe",
"args": [
"-m",
"data_go_mcp.nts_business_verification.server"
],
"cwd": "C:\\Users\\username\\github\\data-go-mcp-servers\\src\\nts-business-verification",
"env": {
"API_KEY": "your-api-key-here",
"PYTHONPATH": "C:\\Users\\username\\github\\data-go-mcp-servers\\src\\nts-business-verification"
}
}
}
}
Important Notes:
- Replace
/path/to/your/projectorusernamewith your actual paths - After saving the configuration, completely quit and restart Claude Desktop
- The MCP server indicator will appear in the bottom-right corner of the conversation input box when successfully connected
Available Tools
validate_business
Validate business registration information authenticity.
Parameters:
business_number(str, required): Business registration number (10 digits, hyphens auto-removed)start_date(str, required): Business start date (YYYYMMDD or YYYY-MM-DD format)representative_name(str, required): Representative namerepresentative_name2(str, optional): Representative name 2 (for foreigners, Korean name)business_name(str, optional): Business namecorp_number(str, optional): Corporation registration number (13 digits)business_sector(str, optional): Main business sectorbusiness_type(str, optional): Main business typebusiness_address(str, optional): Business address
Returns:
business_number: Business registration numbervalid: Validation result ("01": match, "02": no match)valid_msg: Validation messagestatus: Business status information (if matched)
Example:
result = await validate_business(
business_number="123-45-67890",
start_date="2020-01-01",
representative_name="홍길동",
business_name="테스트회사"
)
check_business_status
Check business registration status for one or more businesses.
Parameters:
business_numbers(str, required): Comma-separated business registration numbers (max 100)
Returns:
request_count: Number of requested itemsmatch_count: Number of matched itemsbusinesses: List of business status information
Example:
result = await check_business_status("1234567890,0987654321")
batch_validate_businesses
Batch validate multiple business registration information at once.
Parameters:
businesses_json(str, required): JSON string containing array of business information (max 100)
Required fields in each business object:
b_no: Business registration numberstart_dt: Business start datep_nm: Representative name
Optional fields:
p_nm2: Representative name 2b_nm: Business namecorp_no: Corporation registration numberb_sector: Main business sectorb_type: Main business typeb_adr: Business address
Returns:
request_count: Number of requested itemsvalid_count: Number of valid itemsresults: List of validation results
Example:
businesses_json = '''[
{
"b_no": "1234567890",
"start_dt": "20200101",
"p_nm": "홍길동",
"b_nm": "테스트회사"
},
{
"b_no": "0987654321",
"start_dt": "20210101",
"p_nm": "김철수"
}
]'''
result = await batch_validate_businesses(businesses_json)
Business Status Codes
Business Status (b_stt_cd)
01: 계속사업자 (Active business)02: 휴업자 (Suspended business)03: 폐업자 (Closed business)
Tax Type Codes (tax_type_cd)
01: 부가가치세 일반과세자 (VAT general taxpayer)02: 부가가치세 간이과세자 (VAT simplified taxpayer)- Other codes may apply depending on tax status
Development
Setup
# Clone the repository
git clone https://github.com/Koomook/data-go-mcp-servers.git
cd data-go-mcp-servers/src/nts-business-verification
# Install dependencies
uv sync
Testing
# Run tests
uv run pytest tests/
# Run with coverage
uv run pytest tests/ --cov=data_go_mcp.nts_business_verification
Running Locally
# Set your API key
export NTS_BUSINESS_VERIFICATION_API_KEY="your-api-key"
# Run the server
uv run python -m data_go_mcp.nts_business_verification.server
API Documentation
For detailed API documentation, visit: https://api.odcloud.kr/api/nts-businessman/v1
Error Codes
BAD_JSON_REQUEST: Invalid JSON format in requestREQUEST_DATA_MALFORMED: Required parameters missingTOO_LARGE_REQUEST: More than 100 items requestedINTERNAL_ERROR: Server internal errorHTTP_ERROR: HTTP communication error
License
Apache License 2.0
Contributing
Contributions are welcome! Please see the main repository for contribution guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file data_go_mcp_nts_business_verification-0.2.0.tar.gz.
File metadata
- Download URL: data_go_mcp_nts_business_verification-0.2.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36d8145c4d731fda95f6df8d6fc7e130290e23f802d3e13fa1288d8ae5d2123e
|
|
| MD5 |
8a134046526d16cb075d28e01db99da2
|
|
| BLAKE2b-256 |
eb11dea0a07e562c0943a93a7a762d6a781995fd9c70efde59578d1e2ba54dbd
|
File details
Details for the file data_go_mcp_nts_business_verification-0.2.0-py3-none-any.whl.
File metadata
- Download URL: data_go_mcp_nts_business_verification-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
834ea48f23d294a3ab94d9f5a0b7967a89d20542287d886df6f488d0c2a9f611
|
|
| MD5 |
8faf8a468bc4f04207a005258db1e74f
|
|
| BLAKE2b-256 |
519a00eed17136160171e7f0f6e173756f90998565eefa94f229fc71bdf9b8c9
|