Skip to main content

FlockX Logo
FlockX MCP Server

FlockX MCP Server

PyPI version Python

Legendary AI Agent Creation & Knowledge Ingestion for Cursor and Claude Desktop and so, so, so much more


🚀 Overview

This repository provides a Model Context Protocol (MCP) server for FlockX, enabling you to manage, train, and validate AI agents through a seamless conversational interface—right inside your development environment (Cursor) or Claude Desktop. With simple Markdown processes and best-practice templates, you can automate agent creation, knowledge ingestion, and validation with ease.


🛠️ Installation & Setup

Prerequisites

Quick Install (Recommended)

# Install from PyPI
pip install mcp-server-flockx

# Or use uvx for isolated execution (preferred for MCP)
uvx mcp-server-flockx

# Or use pipx for global installation
pipx install mcp-server-flockx

Alternative: Install from Source

git clone https://github.com/flockx-official/mcp-server-flockx
cd mcp-server-flockx
pip install -e .

🖥️ Integrate with Cursor IDE

  1. Open Cursor Settings (Cmd+, or Ctrl+,)
  2. Search for "MCP" or navigate to MCP settings
  3. Add to your MCP configuration:
{
  "mcpServers": {
    "flockx-mcp": {
      "command": "uvx",
      "args": ["mcp-server-flockx"],
      "env": {
        "FLOCKX_API_KEY": "your_api_key_here"
      }
    }
  }
}
  1. Restart Cursor
  2. Enable Agent Mode in your chat (critical!)
  3. Your FlockX MCP tools will appear in the tools panel

💬 Integrate with Claude Desktop

  1. Open Claude Desktop → Settings → Developer → Edit Config
  2. Add to claude_desktop_config.json:
{
  "mcpServers": {
    "flockx-mcp": {
      "command": "uvx",
      "args": ["mcp-server-flockx"],
      "env": {
        "FLOCKX_API_KEY": "your_api_key_here"
      }
    }
  }
}
  1. Save and restart Claude Desktop
  2. Look for the MCP tools icon in chat

🤖 Why Use the flockx MCP Server?

Working with the flockx MCP server in Cursor or Claude Desktop unlocks a new paradigm:

  • Conversational Training: Interact with your agent, teach new skills, and ingest knowledge—all through natural language.
  • Process Automation: Define and run complex workflows using simple Markdown files in training/processes/. No code required—just describe your process, and let your AI do the rest.
  • Best Practice Templates: Use the provided templates in training/templates/ to ensure every knowledge document and agent profile is structured for success.

You can iteratively build, test, and refine your agents in a collaborative, conversational loop—directly in your favorite environment.

🧪 What This Workflow Does For You

When you follow this workflow, the system will:

  • Create test agents in your FlockX account automatically.
  • Train each agent on your provided profession or domain knowledge (using your input files and best-practice extraction).
  • Enable you to ask any of your agents questions—directly in Cursor or Claude Desktop—so you can interact, test, and validate their knowledge in real time.

This makes it easy to prototype, experiment, and iterate on agent skills and knowledge before deploying to production.


🚀 Full Workflow Overview

See how much gets done with a single command:

flowchart TD
  subgraph "Extract Skills Knowledge Local"
    A[List Inputs] --> B[Read Input File]
    B --> C{Extract Skills}
    C --> D[Fill Knowledge Template]
    D --> E[Save Knowledge Doc]
  end

  subgraph "Generate Agent Profiles Local"
    F[List Knowledge Docs] --> G[Read Knowledge Doc]
    G --> H{Extract Agent Info}
    H --> I[Fill Agent Template]
    I --> J[Save Agent Profile]
  end

  subgraph "Create Agents FlockX API"
    K[Create Agent API]
  end

  subgraph "Upload Knowledge FlockX API"
    L[Upload Knowledge Doc API]
  end

  subgraph "Validate Completion FlockX API"
    M[Query FlockX API]
  end

  E --> F
  J --> K
  E --> L
  K --> M
  L --> M

  classDef api_node fill:#e0e7ff,stroke:#6366f1,stroke-width:2px;
  class K,L,M api_node

📝 Next Steps: Orchestrate the Full Workflow

To get started with end-to-end agent creation and knowledge ingestion, simply ask your AI assistant (in Cursor or Claude Desktop):

"Please follow the instructions in training/processes/process-overall-agent-knowledge-ingestion.md to extract, generate, upload, and validate agent knowledge."

Your AI will guide you through each step, leveraging the Markdown processes and templates provided.


🛠️ Troubleshooting

  • FLOCKX_API_KEY not set: Add your API key to the MCP configuration in Cursor/Claude settings
  • MCP server not responding: Ensure you've restarted your IDE after configuration
  • "Need approval" messages: Enable Agent Mode in Cursor (critical!)
  • Installation issues: Try pip install --upgrade mcp-server-flockx
  • Rate limiting: If you encounter API rate limits, consider adjusting your workflow or contacting FlockX support

📦 Releasing to PyPI (maintainers)

Semantic versioning is used: MAJOR.MINOR.PATCH.

  1. Update pyproject.toml and src/mcp_server_flockx/__init__.py with the new version.
  2. Update CHANGELOG.md.
  3. Create and push a tag to trigger publish (GitHub Actions):
git checkout main && git pull
git tag -a v0.2.0 -m "Release v0.2.0"
git push origin v0.2.0

CI will build and publish to PyPI when the tag is pushed. Configure repository secret PYPI_API_TOKEN with an API token from PyPI.

🤝 Contributing

Metadata

Release files for mcp-server-flockx 0.2.0

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

Source distribution (sdist)

Source distribution for mcp-server-flockx 0.2.0
File Size Uploaded Provenance
mcp_server_flockx-0.2.0.tar.gz 6.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-flockx 0.2.0
File Interpreter ABI Platform
mcp_server_flockx-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / mcp_server_flockx-0.2.0.tar.gz

Download URL mcp_server_flockx-0.2.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d34e9a6620962d85c17bb5926faaa61cf8dfb62ac9d56d14352186a17af18053
BLAKE2b-256 checksum
How to use checksums
319d2545f9c12dad46163c6c5d3d2ec435026b4eda6a6271584f06a1563da9e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / mcp_server_flockx-0.2.0-py3-none-any.whl

Download URL mcp_server_flockx-0.2.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
123992827cacbee32ad4d716418616010e735d995f8312a8a47ffc6ec2694cf2
BLAKE2b-256 checksum
How to use checksums
8d4f8fcb1784fa3ed5e6fc3f0743785e3cb69dd90af13494fde5db342760b67c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Security for mcp-server-flockx 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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