npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@thecorporation/mcp-server

v26.3.51

Published

MCP server for agent-native corporate operations

Downloads

254

Readme

@thecorporation/mcp-server

36 MCP tools that give AI agents full corporate operations capabilities. Entity formation, equity management, payroll, contracts, banking, tax compliance — every tool call passes through the governance kernel, produces an atomic git commit, and returns a signed receipt. Your agent gets corporate powers. Your corporation gets an audit trail.

Part of TheCorporation — version-controlled governance, autonomous agents, and open-source corporate infrastructure.

Install

npm install -g @thecorporation/mcp-server

Or run directly:

npx @thecorporation/mcp-server

Configure with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "thecorporation": {
      "command": "npx",
      "args": ["-y", "@thecorporation/mcp-server"]
    }
  }
}

Configure with Claude Code

claude mcp add thecorporation -- npx -y @thecorporation/mcp-server

Authentication

The MCP server shares credentials with the CLI. Authenticate once, use everywhere.

Option 1: Authenticate via CLI (recommended)

npx @thecorporation/cli setup

This sends a magic link to your email. Click the link, paste the code into the terminal, and your credentials are saved to ~/.corp/config.json. The MCP server reads this file automatically — no additional configuration needed.

Your workspace is the same whether you access it from the CLI, MCP server, or chat at humans.thecorporation.ai.

Option 2: Environment variables

Set credentials explicitly in your MCP client config:

{
  "mcpServers": {
    "thecorporation": {
      "command": "npx",
      "args": ["-y", "@thecorporation/mcp-server"],
      "env": {
        "CORP_API_KEY": "sk_...",
        "CORP_WORKSPACE_ID": "ws_..."
      }
    }
  }
}

Option 3: Local mode

Run corp setup and choose "Local". The MCP server automatically picks up the local-mode config from ~/.corp/ — no additional env vars needed. All requests go through the Rust binary directly (no network).

npx @thecorporation/cli setup   # choose "Local"
# MCP server now works automatically

Option 4: Self-hosted

Point to your own API server:

{
  "mcpServers": {
    "thecorporation": {
      "command": "npx",
      "args": ["-y", "@thecorporation/mcp-server"],
      "env": {
        "CORP_API_URL": "http://localhost:8000",
        "CORP_API_KEY": "sk_...",
        "CORP_WORKSPACE_ID": "ws_..."
      }
    }
  }
}

| Env var | Description | Default | |---|---|---| | CORP_API_URL | API base URL (process:// for local) | https://api.thecorporation.ai | | CORP_API_KEY | API key | from ~/.corp/auth.json | | CORP_WORKSPACE_ID | Workspace ID | from ~/.corp/auth.json |

Tools

| Tool | Description | |---|---| | form_entity | Form an LLC or corporation in any US state | | convert_entity | Convert entity type (e.g. LLC to C-Corp) | | dissolve_entity | Initiate entity dissolution | | issue_equity | Issue shares or membership units | | issue_safe | Issue SAFE notes (pre-money, post-money, MFN) | | transfer_shares | Transfer shares between parties | | calculate_distribution | Calculate and record distributions | | create_invoice | Create and send invoices | | run_payroll | Run payroll for employees and contractors | | submit_payment | Send payments via ACH, wire, or check | | open_bank_account | Open a business bank account | | reconcile_ledger | Reconcile the entity ledger | | generate_contract | Generate NDAs, contractor agreements, offer letters | | get_signing_link | Generate a signing URL for documents | | get_document_link | Get a document download/preview link | | file_tax_document | Generate 1099s, K-1s, estimated tax filings | | track_deadline | Track compliance and filing deadlines | | classify_contractor | Analyze contractor classification risk | | convene_meeting | Convene board, shareholder, or member meetings | | schedule_meeting | Schedule a governance meeting | | cast_vote | Cast votes on meeting agenda items | | create_agent | Create an autonomous AI agent | | send_agent_message | Send a message to an agent | | update_agent | Update agent configuration | | add_agent_skill | Add a skill to an agent | | get_workspace_status | Workspace summary | | list_entities | List all entities | | get_cap_table | View cap table | | list_documents | List documents | | list_safe_notes | List SAFE notes | | list_agents | List agents | | list_obligations | List compliance obligations | | get_checklist | Read the workspace checklist | | update_checklist | Update the workspace checklist | | get_signer_link | Generate a signing link for human obligations | | get_billing_status | Show billing tier and usage |

Example Prompts

  • "Form a Delaware LLC called Acme AI for my consulting business"
  • "Issue a $500K post-money SAFE with a $10M cap to Jane Smith"
  • "Generate an NDA between my company and Acme Corp"
  • "Run payroll for January 2025"
  • "File 1099-NECs for all my contractors"

How It Works

Every operation flows through a deterministic governance kernel:

Agent Tool Call → Intent → Policy Evaluation → Execution → Receipt
  • No side effect without an auditable intent
  • Every receipt is hash-bound and immutable
  • Human obligations auto-generated for legally required signatures
  • Double-entry ledger tracks every dollar

Links

License

Apache-2.0