Skip to main content

MCP Server for Federal Acquisition Regulations (FAR) search

Project description

FAR Oracle - MCP Server for AI Agents

FAR Oracle is a Model Context Protocol (MCP) server that provides AI agents with instant, programmatic access to the U.S. Federal Acquisition Regulation (FAR).

This server allows agents like Claude Desktop, AutoGPT, and CrewAI to perform semantic searches on the entire FAR database, enabling them to assist with compliance, research, and proposal writing for government contracts.

FAR Oracle Demo

Key Features

  • Semantic Search: Understands the intent behind queries, not just keywords.
  • A2A Commerce: Zero-friction, automatic API key registration on first use.
  • Always Up-to-Date: Continuously updated with the latest FAR clauses.
  • Simple Integration: Works seamlessly with any MCP-compatible agent.

Quick Start (30 Seconds)

Get your agent connected to FAR Oracle in two simple steps.

Step 1: Install from PyPI

pip install far-oracle

Step 2: Configure Your Agent (e.g., Claude Desktop)

Add the following to your agent's MCP configuration file (e.g., claude_desktop_config.json).

The API key is handled automatically via A2A commerce. You do not need to provide one.

{
  "mcpServers": {
    "far-oracle": {
      "command": "far-oracle",
      "args": []
    }
  }
}

That's it! Your agent can now access the FAR.


How It Works: A2A Commerce

This MCP server uses Agent-to-Agent (A2A) Commerce for authentication. The first time your agent connects, it automatically:

  1. Registers for a free API key.
  2. Stores the key locally in ~/.far-oracle/credentials.
  3. Uses the key for all subsequent requests.

This provides a completely seamless, zero-friction onboarding experience for agents.

Usage Examples

Once configured, you can ask your agent questions like:

"Using the far-oracle tool, what are the FAR requirements for cybersecurity?"

"With far-oracle, explain the small business set-aside rules found in FAR Part 19."

"Use far-oracle to find contract clauses related to intellectual property and data rights."

Pricing & Tiers

FAR Oracle uses a simple, agent-friendly pricing model. All usage is managed through the A2A Commerce API.

Plan Queries/Month Price Upgrade
Free 500 $0 Automatic on first use
Pro 5,000 $29 Via /v1/billing/upgrade endpoint
Ultra 150,000 $199 Via /v1/billing/upgrade endpoint

Your agent can programmatically upgrade its plan by calling the billing endpoint.

Troubleshooting

Problem: command not found: far-oracle

  • Cause: The package's scripts directory is not in your system's PATH.
  • Solution: Ensure that the output of python3 -m site --user-base/bin is in your PATH. Alternatively, you can use the full path to the executable.

Problem: Connection errors or timeouts

  • Cause: A firewall may be blocking the connection to the FAR RAG API.
  • Solution: Ensure your system can make outbound requests to https://far-rag-api-production.up.railway.app.

Full API Documentation

For more details on the underlying REST API, including all available endpoints and parameters, please see the full API documentation:

FAR RAG API Documentation

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

far_oracle-1.0.8.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

far_oracle-1.0.8-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file far_oracle-1.0.8.tar.gz.

File metadata

  • Download URL: far_oracle-1.0.8.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for far_oracle-1.0.8.tar.gz
Algorithm Hash digest
SHA256 3a1a0f0e136d7fea46cc64dbc5f7f5ddd078026d13991b8f3787b586c9301cd0
MD5 63063152b636c16dc232c39d502b226b
BLAKE2b-256 4cf02eff7c6a4d1d06a1c38b26599115bf9917e17f95ee7a26008ac4dd4bdee9

See more details on using hashes here.

File details

Details for the file far_oracle-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: far_oracle-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for far_oracle-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2ddfe5cadf16dda059de5cb988e325d69c081044954f46e3e68a4ab0a44d09bc
MD5 f8b701550a1a7d18e09c55b9b34be905
BLAKE2b-256 203b4fe5c18f75de1b668607637a1480561c0f83d3de7b29e036ec4447c841b2

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