Skip to main content

XHR MCP Server

Python MCP server for X-HR tools. This package is intended to run as a stdio MCP server so external clients can launch it as a local subprocess and communicate through standard input/output.

Transport

This server uses MCP stdio transport.

It is not intended to expose an HTTP MCP endpoint. MCP clients should start the package command directly and let the client manage the stdio session.

Install

From PyPI, once published:

pip install xhr-mcp-server

Or run it without a persistent install:

uvx xhr-mcp-server

For local development:

uv sync

MCP Client Config

Example stdio configuration:

{
  "mcpServers": {
    "xhr": {
      "command": "uvx",
      "args": ["xhr-mcp-server"]
    }
  }
}

If the package is installed in the same environment as the MCP client:

{
  "mcpServers": {
    "xhr": {
      "command": "xhr-mcp-server",
      "args": []
    }
  }
}

Local Development

Run from the repository root:

uv run xhr-mcp-server

The installed package exposes the same command:

xhr-mcp-server

Environment

Common environment variables:

LOG_LEVEL=DEBUG
LOG_FORMAT=pretty
API_BASE_URL=https://api.dev.x-hr.ai
XHR_PAT=

API_BASE_URL defaults to https://api.x-hr.co when unset. For local testing, set it to the dev API URL shown above. XHR_PAT is optional. When present and the MCP request does not include an authorization header, script tools forward it as authorization: Bearer <XHR_PAT>. Script tools also use that authorization header to call /v1/im/me and fill xhr-employee-id and xhr-company-id when they are missing.

Notes

Database migrations, Alembic, SQLAlchemy, and Postgres are intentionally not part of this package.

Metadata

Release files for xhr-mcp-server 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xhr-mcp-server 0.1.4
File Size Uploaded Provenance
xhr_mcp_server-0.1.4.tar.gz 163.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xhr-mcp-server 0.1.4
File Interpreter ABI Platform
xhr_mcp_server-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 461.6 kB

Release files / xhr_mcp_server-0.1.4.tar.gz

Download URL xhr_mcp_server-0.1.4.tar.gz
Size 163.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e5663255bccd49e50cc561356291b1d188b4e518a6497b80a03bba0b324bdf3e
BLAKE2b-256 checksum
How to use checksums
a4909d5028736801cd5dfd89a7b9ca0bd7a5828a97f35d1a2677fe82a837cd88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / xhr_mcp_server-0.1.4-py3-none-any.whl

Download URL xhr_mcp_server-0.1.4-py3-none-any.whl
Size 297.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fd9ca9e57e4f9f4cc0ef10a6aead8cf10b312f4c83580edb16517a8dbae1772
BLAKE2b-256 checksum
How to use checksums
acc2b72987111910a2c4e1f69bcac02798fe975a59a4a7b9b14651a98efde940
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for xhr-mcp-server 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page