Skip to main content Switch to mobile version webex-bot-ai 0.3.3 AI Bot for Webex with thread context and MCP support
pip install webex-bot-ai==0.3.3 Copy PIP instructions
Bring any LLM and your MCP tools into Webex spaces, with thread-aware conversations
Quick start · Configuration · MCP integration · Usage
A conversational AI bot for Webex that:
🤖 Responds to user mentions with AI-generated answers
💬 Maintains conversation context within threads
🔧 Integrates with MCP (Model Context Protocol) servers for extended capabilities
🌐 Supports multiple LLM providers via LiteLLM (OpenAI, Google Gemini, Ollama, OpenRouter, Anthropic, etc.)
Thread-aware conversations: The bot remembers context within Webex threads, allowing natural follow-up questions
Rolling thread summarization: Background tasks summarize older messages as threads grow, preserving context indefinitely without hitting context limits
Room-wide history search: Uses SQLite FTS5 keyword search to look up past messages, solutions, and context across Webex space history
Smart mention handling: The bot recognizes its own name and doesn't confuse it with questions
Multiple LLM providers: Use OpenAI, Google Gemini, Ollama (local/cloud), OpenRouter, Anthropic, or any LiteLLM-supported provider
MCP Integration: Connect to multiple MCP servers via HTTP for extended tool capabilities
Access control: Restrict bot to approved users, domains, or rooms
Clean code: Follows Python best practices with ruff linting and formatting
Webex bot token (create one here)
API key for your LLM provider (e.g., OpenAI, Gemini)
Option 1: Install from PyPI
Run the package directly from PyPI using UVX:
uvx webex-bot-ai Option 2: Local Development Setup
For development or running from source:
git clone https://github.com/mhajder/webex-bot-ai.git cd webex-bot-ai uv sync Option 3: Run with Docker (Persistent Storage)
Run in a container with database volume persistence:
docker run -d \ --name webex-bot-ai \ --env-file .env \ -v webex_bot_data:/app/data \ ghcr.io/mhajder/webex-bot-ai:latest Configuration
cp .env.example .env # Edit .env with your configuration Set required variables in .env:
WEBEX_ACCESS_TOKEN=your_webex_bot_token OPENAI_API_KEY=your_openai_api_key Run the bot:
webex-bot-ai 🔧 Configuration
Conversation Settings & Rolling Summarization
# OpenAI LLM_MODEL=gpt-4o-mini OPENAI_API_KEY=sk-... # Google Gemini LLM_MODEL=gemini/gemini-2.5-flash GEMINI_API_KEY=AIzaSy... # Ollama (local) LLM_MODEL=ollama_chat/gpt-oss:120b LLM_API_BASE=http://localhost:11434 # OpenRouter LLM_MODEL=openrouter/meta-llama/llama-3.1-70b-instruct OPENROUTER_API_KEY=sk-or-... # Anthropic LLM_MODEL=claude-3-sonnet-20240229 ANTHROPIC_API_KEY=sk-ant-... Access Control
# Restrict to specific users WEBEX_APPROVED_USERS=user1@example.com,user2@example.com # Restrict to specific email domains WEBEX_APPROVED_DOMAINS=example.com # Restrict to specific rooms WEBEX_APPROVED_ROOMS=room_id_1,room_id_2 MCP Integration
Connect to MCP HTTP transport servers for extended tool capabilities:
MCP_ENABLED=true MCP_REQUEST_TIMEOUT=30 # Single server MCP_SERVERS=[{"name": "my-server", "url": "http://localhost:8000/mcp", "enabled": true}] # Multiple servers with auth MCP_SERVERS='[ {"name": "tools-server", "url": "http://localhost:8000/mcp", "enabled": true}, {"name": "secure-server", "url": "https://api.example.com/mcp", "auth_token": "your-token", "enabled": true} ]' Sentry Error Tracking (Optional)
Enable error tracking and performance monitoring with Sentry:
# Install with Sentry support uv sync --extra sentry Configure Sentry via environment variables:
# Enable Sentry error tracking SENTRY_DSN=https://your-key@o12345.ingest.us.sentry.io/6789 SENTRY_ENVIRONMENT=production 💡 Usage
Start a conversation: Mention the bot in a Webex space:
Follow-up in thread: Reply in the same thread for context-aware responses:
The bot maintains context within the thread, so you can have natural conversations.
uv sync --group dev uv run prek install # Lint, format and type-check uv run ruff check . uv run ruff format . uv run ty check . Adding New Features
Commands: Add new commands in src/commands/
MCP Tools: Connect to MCP servers via configuration
LLM Providers: Configure via LLM_MODEL using LiteLLM syntax
webex_bot - Webex bot framework
litellm - Universal LLM API
fastmcp - MCP client/server framework
pydantic-settings - Configuration management
sentry-sdk - Error tracking (optional)
Contributions are welcome. See CONTRIBUTING.md for the dev setup, checks and commit message format, and use the issue templates for bugs and feature requests.
Found a security problem? Please report it privately as described in SECURITY.md.
This project is licensed under the MIT License - see the LICENSE file for details.
Both files in this release have provenance metadata.
ai ai-assistant automation bot chatbot fastmcp litellm mcp webex webex-teams
Development Status 3 - Alpha
Intended Audience Developers
License OSI Approved :: MIT License
Operating System OS Independent
Programming Language Python :: 3
Topic Communications :: Chat
Release files for webex-bot-ai 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 327.4 kB
Release files / webex_bot_ai-0.3.3.tar.gz
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Release files / webex_bot_ai-0.3.3-py3-none-any.whl
Security for webex-bot-ai 0.3.3
Both files in this release have been uploaded with provenance metadata.
With provenance webex_bot_ai-0.3.3.tar.gz Nov 28, 2026
With provenance webex_bot_ai-0.3.3-py3-none-any.whl Nov 28, 2026
Attestation for webex_bot_ai-0.3.3.tar.gz
Attestation for webex_bot_ai-0.3.3-py3-none-any.whl
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
Nov 28, 2026 2 release files Full provenance
Nov 12, 2026 2 release files Full provenance
Oct 20, 2026 2 release files Full provenance
Jul 26, 2026 2 release files Full provenance
Jan 15, 2026 2 release files Full provenance
Jan 1, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




