# Repository Briefing: DevnorsAI/devnors-data-mcp
> Source: https://repoforai.com/repo/DevnorsAI/devnors-data-mcp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/DevnorsAI/devnors-data-mcp
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B (50/100 · Maintenance 20/35 · Adoption 4/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, API, CLI
- **Momentum**: 878 ★ total (+7 24h / +44 7d) · 3 forks
- **When to Use**: Best for: Teams using MCP-capable assistants for interactive Chinese legal research, enterprise checks, or keyword research, with a Devnors API account and a plan to track usage. Skip if: You need offline data, control of an independently operated data backend, or only a fixed batch workflow that the SDK or direct API can handle with fewer layers.

## Overview
```text
### Architecture & Core Mechanics
Devnors Data MCP is a Python adapter that exposes Devnors Data through the Model Context Protocol. The local package lives under devnors_mcp/, requires Python 3.10+, and depends on mcp>=1.0.0 and devnors-data>=0.1.3. Its console script, devnors-mcp, targets devnors_mcp.server:main. The hosted HTTP endpoint is a separate connection option; its server-side implementation is not established here.

The integration separates discovery from execution. An MCP client can call list_capabilities to inspect the backend's live domain/type pairs, filters, fields, examples, and errors before selecting a named tool. Devnors Data exposes a unified /v1/data/query API, while the MCP integration offers task-specific tools. That makes the adapter an interface to an external data service, not a local corpus or an inference engine.

### Key Capabilities & Differentiators
Legal tools separate judgment searches (legal_case_search) from current statute searches (legal_law_search). Enterprise tools cover registration, annual report lists and details, shareholders, administrative penalties, court records, and enforcement or dishonesty records. Other workflows include keyword suggestions and mining, express tracking, and searches for academic papers and scholar profiles.

content_wechat_index_v2 returns a time series and is billed per keyword. Successful calls return units and request_id for consumption tracking and troubleshooting. Structured failures distinguish retryable rate_limited, unavailable, and upstream_error responses from problems that need intervention, such as unauthorized, insufficient_balance, and invalid_capability. not_implemented indicates a planned capability, not a temporary outage.

### Trade-offs & Limitations
Compared with direct calls through the Python SDK or unified query API, MCP gives a compatible assistant live discovery and a named tool interface without requiring each client integration to implement those calls itself. A fixed application pipeline may benefit more from the smaller integration surface of a direct SDK or API call, particularly when application code must own request construction and response validation.

Hosted HTTP avoids maintaining a local process; stdio gives operators control over the Python environment and backend URL, but does not remove API credentials, usage charges, or upstream availability constraints. The SDK already applies bounded backoff to retryable HTTP 429 and 5xx responses, so an outer workflow should avoid blind retries. The MIT license covers the connector, not API entitlements or rights to store and redistribute returned data.

### Hardware & Deployment Guide
For hosted access, configure a remote HTTP-capable MCP client with https://data.devnors.com/mcp and Authorization: Bearer <API_KEY>. Obtain the key through the Devnors developer console. This path requires no local Python. For stdio, install devnors-mcp with pip under Python 3.10+, launch python -m devnors_mcp.server, and pass DEVNORS_API_KEY into that process. On Windows, use the module invocation or an absolute Python path to avoid the client's PATH lookup for the console script.

Set DEVNORS_DATA_BASE_URL in local mode to target a compatible private or self-hosted API endpoint. Running stdio locally does not make the integration offline or deploy the upstream data service. No latest GitHub release is listed, so there is no release milestone to anchor an upgrade decision; pin and test the connector and SDK versions for managed rollouts.
```

## Key Capabilities
```text
- Transport: hosted HTTP MCP with Bearer authentication, or a client-launched local stdio process.
- Runtime: Python 3.10+ with mcp>=1.0.0 and devnors-data>=0.1.3; devnors-mcp maps to devnors_mcp.server:main.
- Discovery: list_capabilities exposes live domain/type pairs, filters, fields, examples, and errors.
- Coverage: Chinese legal and enterprise lookups, keyword research, academic paper and scholar search, and express tracking.
- Metering: successful calls expose units and request_id; WeChat Index v2 is billed per keyword.
- Retry ownership: the SDK applies bounded backoff for retryable HTTP 429 and 5xx responses; MCP adds no retry layer.
```

## Quick Start / Clone
```bash
{
  "mcpServers": {
    "devnors-data": {
      "url": "https://data.devnors.com/mcp",
      "headers": {
        "Authorization": "Bearer devnors_sk_live_xxx"
      }
    }
  }
}
```
