Skip to main content

MCP server for BuildShield — AI cost intelligence for agents

Project description

buildshield-mcp

MCP server for BuildShield — AI cost intelligence for agents.

Install

pip install buildshield-mcp

Configure (Claude Desktop / Cursor)

Add to your MCP config (~/.config/claude/claude_desktop_config.json):

{
  "mcpServers": {
    "buildshield": {
      "command": "buildshield-mcp",
      "env": {
        "BUILDSHIELD_API_KEY": "bsk_..."
      }
    }
  }
}

Get your API key at thebuildshield.com/settings.

buildshield-mcp is the MCP server command. Keep it inside your MCP client configuration; it waits on stdio and is not meant to print a normal help screen.

Terminal smoke tests

The package also installs CLI wrappers for the same tool handlers:

buildshield_check_cost gpt-4.1 50000 10000
buildshield_get_pricing claude-sonnet-4.6
buildshield_recommend_model "code review" --min-context-tokens 200000

You can also use the grouped command form:

buildshield check-cost gpt-4.1 50000 10000

Tools

Tool Description Requires key?
buildshield_check_cost Exact cost for model + token count No — offline
buildshield_recommend_model Best models for a task with filters No — offline
buildshield_get_pricing Browse all model pricing No — offline
buildshield_optimize_prompt Rule-based prompt compression (20-40% savings) No — offline
buildshield_check_budget Check remaining budget for your API key Yes
buildshield_log_usage Log usage to your dashboard Optional

Examples

"What does claude-sonnet-4.6 cost for 50K input + 10K output tokens?"
→ buildshield_check_cost(model="claude-sonnet-4.6", input_tokens=50000, output_tokens=10000)

"What's the cheapest model with at least 200K context?"
→ buildshield_recommend_model(task="long document analysis", min_context_tokens=200000)

"Compress this system prompt"
→ buildshield_optimize_prompt(text="...", aggressiveness="medium")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

buildshield_mcp-0.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

buildshield_mcp-0.1.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file buildshield_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: buildshield_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for buildshield_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cfad779c45628670c7088473a30461d64936b4b2c695c021835972849212a53e
MD5 68b762c771d967fe743494c13e579e01
BLAKE2b-256 1250a4ba3a331a44bf499200d017e6a7b59f199815f0913c128fc0bcff9be889

See more details on using hashes here.

File details

Details for the file buildshield_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for buildshield_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83fbab0234ff331a11a65b9c4cae7ed8301b9efc5a7907fa226ed0952e74c182
MD5 9d21b7631d3bf354c732627f0c5e320e
BLAKE2b-256 65f2981f9e21a48cac971f483c049533af2c73119ab69e413c89b526828f6f4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page