mcpField
E
enterprise-info

enterprise-info

github.com/wmy2981Productivity154 installsUpdated 5w ago
Repository

About enterprise-info

enterprise-info is a command-line skill that queries the 接口盒子 API for Chinese company registration details. It accepts a company name or credit code and displays structured fields when available.

Key features

  1. 01Query by company name or credit code
  2. 02Retrieve registration and business details
  3. 03Show additional fields when available
  4. 04Report request and API errors

Use cases

  1. 01Check a company's registration information
  2. 02Look up a company using its unified credit code

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/wmy2981/skills --skill enterprise-info

After installing, type/enterprise-infoin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.claude-plugin/
plugin.json
references/
api_doc.md
scripts/
.env.example
query.py

Details

From the project README

Enterprise Info Query

Queries the 接口盒子 API to retrieve Chinese company registration details from the official business registry.

Execution Rule

Run the user's requested command directly without pre-checking dependencies, environment variables, or configuration. If something is wrong, the script will fail with a clear error — check and fix only then.

Environment Variables

VariableDescription
JKHZ_ID接口盒子 (apihz.cn) user ID
JKHZ_KEY接口盒子 API key

The script loads these from ~/.wmyskills/.env (shared across skills) automatically; a scripts/.env in the script directory takes priority if present. Use scripts/.env.example as the template — add the variables to ~/.wmyskills/.env, never overwriting an existing file.

Requirements

pip install python-dotenv

Usage

Script: scripts/query.py

Query by company name or credit code
python scripts/query.py "Company Name"
python scripts/query.py "91440101MA5XXXXXXX"

The script automatically determines success or failure. On success it prints structured key fields; on failure it prints the error reason.

Output Fields

FieldDescription
Company NameFull registered business name
Unified Social Credit Code18-digit credit code
Legal RepresentativeLegal person name
Registered CapitalRegistered capital (10K CNY)
Establishment DateDate of founding
Business StatusActive / Deregistered / Revoked, etc.
Approval DateLast approval date
Registration AuthorityRegistering bureau
Registered AddressBusiness address
Business ScopeMain business scope
Contact PhoneCompany phone number
EmailCompany email
Company TypeLLC, etc.
Taxpayer QualificationGeneral taxpayer / small-scale, etc.
Personnel ScaleNumber of insured employees
Shareholder InfoMajor shareholders

Additional fields shown when available: paid-in capital, industry, operating period, website, historical names, key personnel.

Error Handling

  • HTTP request failure → network error message
  • API returns code=400 → specific error (e.g. "company name not found")
  • Env vars not set → configuration missing prompt

Comments

Markdown supported