Skip to main content
Glama
China Company Risk MCP
by openanysi
README.md
# China Company Risk MCP

Check risk signals for Chinese companies with risk scans, business exceptions, administrative penalties, and case filings. Powered by [OpenAny](https://openany.si/).

[![npm version](https://img.shields.io/npm/v/@openanysi/china-company-risk-mcp.svg)](https://www.npmjs.com/package/@openanysi/china-company-risk-mcp)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
[![Node.js](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](https://nodejs.org/)

## Quick Start

### Prerequisites

- Node.js 22 or later.
- An MCP client that runs local stdio commands (e.g., Claude Desktop, Cursor, Windsurf, or Claude Code).
- An OpenAny API key for data requests. Create one in [API Keys](https://openany.si/dashboard/?page=api-keys), follow the [setup guide](https://openany.si/setup.md), and review [usage and costs](https://openany.si/dashboard/?page=usage).

### Configure your client

Add this entry to your client's private settings when it supports the `mcpServers` format:

```json
{
  "mcpServers": {
    "china-company-risk-mcp": {
      "command": "npx",
      "args": ["-y", "@openanysi/china-company-risk-mcp"],
      "env": {
        "OPENANY_API_KEY": "YOUR_OPENANY_API_KEY"
      }
    }
  }
}
```

Replace the placeholder in private settings, or supply the key through your client's secret manager or inherited environment. For utility-only use, omit `env`. Keep real keys out of chat and repositories.

Refresh or restart your MCP client, then try the appropriate prompt:

- **Without an API key:** "Inspect `scan_company_risk` with `get_tool_info`, then load `company-risk-review` using `get_workflow` with `language: "en"`. Show the required inputs and current price."
- **With an API key:** "Review this supplier using its full registered company name. Check current tool pricing, scan its own risk dimensions, and inspect the relevant business exceptions, penalties, or case filings. Keep source evidence and explain any gaps."

## Features / Use Cases

| Task | Data available through the MCP | What your agent can prepare |
| --- | --- | --- |
| Supplier screening | Company risk dimensions and record counts | A focused follow-up checklist |
| Business exception review | Returned business exception records | A factual timeline with available status information |
| Penalty research | Administrative penalties, optionally from a requested date | A dated summary of returned records |
| Case context | Case filings, optionally filtered by year and party role | A role-aware case overview |
| Company comparison | The same selected checks for supplied companies | A comparison table and local Markdown or CSV |

Your agent selects the calls, interprets the returned material, and writes reports using the client's own tools.

## Example Prompts

- "Review my supplier's business exceptions and administrative penalties since the date I provide. Preserve record dates and distinguish available current and historical statuses."
- "Find case filings for this company in the requested year. Preserve each party role and separate observed facts from follow-up questions."
- "Compare these three supplied companies using the same requested dimensions and time scope. Mark missing or failed checks as unknown and save the comparison as CSV."

## Tools

The server exposes **seven tools**: four data tools and three free utility tools. Each data tool sends one request after its current contract has been inspected.

### Data tools

All data tools require a `request` object containing `searchKey`: the company's full registered name or Unified Social Credit Code.

| Tool | Additional request fields | Purpose |
| --- | --- | --- |
| `scan_company_risk` | None | Scan the company's own risk dimensions and returned record counts |
| `get_business_exceptions` | None | Retrieve business exception information |
| `get_administrative_penalties` | Optional `date_from`, formatted `YYYY-MM-DD` | Retrieve administrative penalty information from a requested lower date bound |
| `get_case_filings` | Optional integer `year`; optional string array `role` | Retrieve case filings for the requested year and party roles |

For example, a data-tool input has this shape:

```json
{
  "request": {
    "searchKey": "YOUR_COMPANY_FULL_REGISTERED_NAME"
  }
}
```

`year` accepts 1900–2999. Omit it for the API's default all-year query; do not loop through years to request all records. Omit `role`, or use an empty array, for all roles. Use `get_tool_info` to read the exact accepted Chinese role values.

These tools expose no pagination, result-limit parameter, or upper date bound. Use an exact company identity rather than a brand, domain, or short name.

### Utility tools — no API key required

| Tool | Inputs | Purpose |
| --- | --- | --- |
| `get_tool_info` | Required `tool_name` | Inspect parameters, current pricing, and known limits |
| `get_workflow` | Required `workflow`; optional `language` | Load a task guide and output template |
| `search_openany_capabilities` | Required `query`; optional `limit` | Discover related OpenAny capabilities without executing them |

`get_workflow` defaults to Chinese (`zh`); pass `language: "en"` for English. Catalog search accepts a limit of 1–10 and defaults to 5.

## Workflow Guides

| Guide ID | Use it for |
| --- | --- |
| `company-risk-review` | A focused review of one supplied company |
| `company-comparison` | Consistent checks across a supplied company list |

Both guides are available in English and Chinese. They provide instructions for your agent and do not run queries or models themselves.

## Example Workflow

1. Supply the exact company identity, review purpose, requested dimensions, and any date or year filters.
2. Load `company-risk-review` with `language: "en"` and inspect the relevant tool contracts and prices.
3. Scan the company if an overview is useful, then choose the specific detail checks needed for the task.
4. Keep record dates, available statuses, party roles, and source references alongside observations.
5. Have your agent produce a report containing findings, evidence, and unanswered questions, or use `company-comparison` for a consistent comparison.

## Limitations & Billing

- **Interpretation:** Risk counts are not detailed records. A case filing does not establish wrongdoing or an adverse judgment. This package supplies risk signals rather than a credit score or legal opinion.
- **Coverage:** Returned material may be incomplete or contain historical records. Retain available statuses and dates; missing fields or failed requests must not be reported as zero records or an absence of risk. Related-party tracing, company discovery, and continuous monitoring are outside these tools.
- **Pricing:** Data calls use current OpenAny pricing, including empty responses when the billing rule applies. Inspect `get_tool_info` first. Analysis, writing, and export use your client's model and tools.
- **Recovery:** If an outcome is unclear, keep the request ID and check the original request before deciding on another call.
- **Privacy:** The server runs locally; catalog queries and data-tool inputs are sent to OpenAny.
- **More capabilities:** Use the catalog tool, or connect the [OpenAny MCP](https://mcp.openany.si/) with the [setup guide](https://openany.si/setup.md).

## FAQ

### Which MCP clients are supported?

Any MCP client that runs local `stdio` servers, including Claude Desktop, Cursor, Windsurf, and Claude Code.

### What company identifier is required for due diligence checks?

All four data tools require `searchKey` set to the company's full registered Chinese name or Unified Social Credit Code—not a brand name, domain, or abbreviation.

### What risk signals can it check for supplier screening?

It checks company risk dimension scans (`scan_company_risk`), business exceptions (`get_business_exceptions`), administrative penalties (`get_administrative_penalties`), and case filings (`get_case_filings`).

### Can I inspect schemas and pricing without an OpenAny API key?

Yes. Omit `env` to run `get_tool_info` (including accepted Chinese role values and live per-call pricing), load bilingual guides via `get_workflow`, and search related capabilities.

## Development

```sh
npm ci --ignore-scripts
npm test
npm run check
```

See [CONTRIBUTING.md](CONTRIBUTING.md) for runtime changes, guide maintenance, packaging, and verification.

## About OpenAny

[OpenAny](https://openany.si/) provides APIs and models for agents and developers. This package focuses on company risk signals and task guides for supplier screening and company research.

## License

[Apache-2.0](LICENSE).