Django AI Boost 标志

Django AI Boost

组织
vintasoftware

A MCP server for Django applications, inspired by Laravel Boost.

发布者vintasoftware
代码仓库django-ai-boost
语言Python
复刻数
5
星标数
112
可用工具
0
传输类型stdio, streamable-http
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Django AI Boost 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 112 个星标和 5 个复刻。

Django AI Boost

A Model Context Protocol (MCP) server for developing Django applications, inspired by Laravel Boost. This server exposes Django project information through MCP tools, enabling AI assistants to better understand and interact with Django codebases.

Table of Contents

Features

  • Project Discovery: List models, URLs, and management commands
  • Database Introspection: View schema, migrations, and relationships
  • Configuration Access: Query Django settings with dot notation
  • Log Reading: Access recent application logs with filtering
  • Production-Ready Authentication: Bearer token authentication for secure deployments
  • Read-Only: All tools are safe, read-only operations
  • Fast: Built on FastMCP for efficient async operations

Screenshots

Django AI Boost in Action

Django AI Boost Example

Django AI Boost MCP server providing Django project introspection through AI assistants (Example using OpenCode)

Installation

For End Users

bash
# Using uv (recommended)
uv pip install django-ai-boost

# Or with pip
pip install django-ai-boost

For Development

If you want to contribute or run the latest development version:

bash
# Clone the repository
git clone https://github.com/vinta/django-ai-boost.git
cd django-ai-boost

# Install uv if you haven't already
# On macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# Install dependencies (creates virtual environment automatically)
uv sync --dev

# Verify installation
uv run django-ai-boost --help

Usage

Running the Server

The server requires access to your Django project's settings:

bash
# Set the Django settings module
export DJANGO_SETTINGS_MODULE=myproject.settings
django-ai-boost

# Or specify settings directly
django-ai-boost --settings myproject.settings

# Run with SSE transport (default is stdio, which doesn't use network ports)
django-ai-boost --settings myproject.settings --transport sse

# Run with SSE transport on a custom port (default port is 8000)
django-ai-boost --settings myproject.settings --transport sse --port 3000

# Run with SSE transport on custom host and port
django-ai-boost --settings myproject.settings --transport sse --host 0.0.0.0 --port 8080

Note: The stdio transport (default) communicates via standard input/output and does not use network ports. The --port and --host options only apply when using --transport sse.

Authentication

Django AI Boost supports bearer token authentication for secure production deployments when using SSE transport.

Quick Start

Set authentication token (recommended for production):

bash
export DJANGO_MCP_AUTH_TOKEN="your-secret-token"
django-ai-boost --settings myproject.settings --transport sse

Or use CLI argument:

bash
django-ai-boost --settings myproject.settings --transport sse --auth-token "your-secret-token"

How It Works

  • Automatic Production Mode: When Django's DEBUG=False and using SSE transport, authentication is automatically required
  • Token Precedence: Environment variable takes precedence over CLI argument for security
  • Transport Support:
    • ✅ SSE Transport: Full authentication support (HTTP-based)
    • ❌ Stdio Transport: No authentication (local-only, trusted environments)
  • Error on Mismatch: If you provide --auth-token with --transport stdio, the server will exit with an error to prevent false security assumptions

Production Deployment

When running in production (DEBUG=False) with SSE transport, you must provide an authentication token:

bash
# This will fail without a token
django-ai-boost --settings myproject.production_settings --transport sse
# Error: Production mode detected but no authentication token provided

# This works
export DJANGO_MCP_AUTH_TOKEN="strong-secret-token"
django-ai-boost --settings myproject.production_settings --transport sse
# Authentication enabled with bearer token for SSE transport

Security Best Practices

  1. Generate strong tokens:

    bash
    python -c "import secrets; print(secrets.token_urlsafe(32))"
  2. Never commit tokens to version control

  3. Use environment variables in production (not CLI arguments)

  4. Rotate tokens periodically

  5. Use HTTPS with a reverse proxy for external access

Client Configuration with Authentication

When using authentication, configure your MCP clients to include the token:

Cursor / Claude Desktop:

json
{
  "mcpServers": {
    "django-ai-boost": {
      "command": "django-ai-boost",
      "args": ["--settings", "myproject.settings", "--transport", "sse"],
      "env": {
        "DJANGO_MCP_AUTH_TOKEN": "your-secret-token",
        "DJANGO_SETTINGS_MODULE": "myproject.settings",
        "PYTHONPATH": "/path/to/your/django/project"
      }
    }
  }
}

Testing with curl:

bash
# Without auth - fails
curl http://127.0.0.1:8000/sse

# With correct token - works
curl -H "Authorization: Bearer your-secret-token" http://127.0.0.1:8000/sse

Troubleshooting Authentication

"Production mode detected but no authentication token provided"

  • Set DJANGO_MCP_AUTH_TOKEN environment variable or use --auth-token

"Authentication token provided but transport is 'stdio'"

  • This is now an error that stops the server from starting
  • Authentication only works with --transport sse
  • Either use --transport sse with your token, or remove the --auth-token argument for stdio

"Running in production mode with stdio transport"

  • This is OK for local/trusted environments, but stdio has no authentication capability
  • For remote access, use --transport sse with authentication

AI Tools Setup

Cursor

Cursor is a popular AI-powered code editor with built-in MCP support.

  1. Open Cursor Settings (Cmd/Ctrl + Shift + J)
  2. Navigate to the "Tools & MCP" section
  3. Add the Django AI Boost server configuration:
json
{
  "mcpServers": {
    "django-ai-boost": {
      "command": "django-ai-boost",
      "args": ["--settings", "myproject.settings"],
      "env": {
        "DJANGO_SETTINGS_MODULE": "myproject.settings",
        "PYTHONPATH": "/path/to/your/django/project"
      }
    }
  }
}

Note: Replace /path/to/your/django/project with the actual path to your Django project root directory.

For more information, see the Cursor MCP documentation.

Claude Desktop

Add to your Claude Desktop configuration:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json
json
{
  "mcpServers": {
    "django": {
      "command": "django-ai-boost",
      "args": ["--settings", "myproject.settings"],
      "env": {
        "DJANGO_SETTINGS_MODULE": "myproject.settings",
        "PYTHONPATH": "/path/to/your/django/project"
      }
    }
  }
}

Note: Make sure to replace /path/to/your/django/project with the actual path to your Django project root directory.

Github Copilot (VS Code Extension)

  1. Install the Github Copilot Chat extension from VS Code marketplace
  2. Create or edit .vscode/mcp.json in your Django project root:
json
{
"inputs": [
  // The "inputs" section defines the inputs required for the MCP server configuration.
  {
    "type": "promptString"
  }
],
"servers": {
  // The "servers" section defines the MCP servers you want to use.
  "django-ai-boost": {
    "command": "uv",
    "args": ["run", "django-ai-boost", "--settings", "myproject.settings"],
    "env": {
      "DJANGO_SETTINGS_MODULE": "myproject.settings"
    }
  }
 }
}
  1. Click "Start" in the JSON

  2. Github Copilot Code will automatically connect to the MCP server when you start a conversation in "Agent" mode.

Claude Code (VS Code Extension)

  1. Install the Claude Code extension from VS Code marketplace
  2. Create or edit .mcp.json in your Django project root:
json
{
  "mcpServers": {
    "django-ai-boost": {
      "command": "uv",
      "args": ["run", "django-ai-boost", "--settings", "myproject.settings"],
      "env": {
        "DJANGO_SETTINGS_MODULE": "myproject.settings"
      }
    }
  }
}
  1. Restart VS Code or reload the Claude Code extension
  2. Claude Code will automatically connect to the MCP server when you start a conversation

OpenAI ChatGPT Desktop with MCP

OpenAI ChatGPT Desktop supports MCP servers. Add to your configuration file:

  • macOS: ~/Library/Application Support/OpenAI/ChatGPT/config.json
  • Windows: %APPDATA%\OpenAI\ChatGPT\config.json
json
{
  "mcpServers": {
    "django": {
      "command": "django-ai-boost",
      "args": ["--settings", "myproject.settings"],
      "env": {
        "DJANGO_SETTINGS_MODULE": "myproject.settings"
      }
    }
  }
}

Cline (VS Code Extension)

  1. Install the Cline extension from VS Code marketplace
  2. Open Cline settings (Cmd/Ctrl + Shift + P → "Cline: Open Settings")
  3. Add MCP server configuration in the MCP Servers section:
json
{
  "django": {
    "command": "django-ai-boost",
    "args": ["--settings", "myproject.settings"],
    "env": {
      "DJANGO_SETTINGS_MODULE": "myproject.settings"
    }
  }
}

Zed Editor

Add to your Zed MCP configuration (~/.config/zed/mcp.json):

json
{
  "servers": {
    "django": {
      "command": "django-ai-boost",
      "args": ["--settings", "myproject.settings"],
      "env": {
        "DJANGO_SETTINGS_MODULE": "myproject.settings"
      }
    }
  }
}

Generic MCP Client

For any MCP-compatible client, you can run the server manually:

bash
# Standard I/O transport (default, no network port)
django-ai-boost --settings myproject.settings

# Server-Sent Events transport (default: 127.0.0.1:8000)
django-ai-boost --settings myproject.settings --transport sse

# SSE transport with custom port
django-ai-boost --settings myproject.settings --transport sse --port 3000

# SSE transport with custom host and port
django-ai-boost --settings myproject.settings --transport sse --host 0.0.0.0 --port 8080

Available Tools and Prompts

Tools

1. application_info

Get Django and Python versions, installed apps, middleware, database engine, and debug mode status.

2. get_setting

Retrieve any Django setting using dot notation (e.g., DATABASES.default.ENGINE).

3. list_models

List all Django models with fields, types, max_length, null/blank status, and relationships.

Arguments:

  • app_labels: Optional list of app labels to filter (e.g., ["blog", "auth"]). If not provided, returns all models.

Note: For large projects, some MCP clients (like PyCharm) may truncate output due to display limits. Use the app_labels parameter to filter by specific apps to avoid truncation. See Troubleshooting for more details.

4. list_urls

Show all URL patterns with names, patterns, and view handlers (including nested includes).

5. database_schema

Get complete database schema including tables, columns, types, indexes, and foreign keys.

6. list_migrations

View all migrations per app with their applied/unapplied status.

7. list_management_commands

List all available manage.py commands with their source apps.

8. get_absolute_url

Get the absolute URL for a specific model instance. Requires the model to have a get_absolute_url() method defined.

Arguments:

  • app_label: The Django app label (e.g., "blog")
  • model_name: The model name (e.g., "Post")
  • pk: The primary key of the instance

9. reverse_url

Reverse a named URL pattern to get its actual URL path. Supports both positional args and keyword arguments.

Arguments:

  • url_name: The URL pattern name (e.g., "post_detail", "admin:index")
  • args: Optional list of positional arguments
  • kwargs: Optional dict of keyword arguments

10. query_model

Query a Django model with read-only operations using the Django ORM manager. This tool allows safe querying of any Django model with filtering, ordering, and pagination.

Arguments:

  • app_label: The Django app label (e.g., "blog")
  • model_name: The model name (e.g., "Post")
  • filters: Optional dict of field lookups (e.g., {"status": "published", "featured": true})
  • order_by: Optional list of fields to order by (e.g., ["-created_at", "title"])
  • limit: Maximum number of results to return (default: 100, max: 1000)

Returns:

  • Total count of matching objects
  • Number of results returned
  • List of model instances as dictionaries with all field values
  • For foreign keys, includes both the ID and string representation

Example Queries:

  • Get all published posts: filters={"status": "published"}
  • Get featured posts ordered by date: filters={"featured": true}, order_by=["-created_at"]
  • Get recent posts with limit: order_by=["-created_at"], limit=10

11. run_check

Run Django's system checks to identify potential issues in models, settings, and deployment configuration.

Arguments:

  • app_labels: Optional list of app labels to check
  • tags: Optional list of check tags (e.g., "models", "compatibility")
  • deploy: Include deployment checks when true
  • fail_level: Minimum severity ("CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG")
  • databases: Optional list of database aliases to include

12. read_recent_logs

Read recent lines from file-based log handlers configured in LOGGING.handlers.

Arguments:

  • lines: Number of lines to return per file (default: 100, configurable via DJANGO_MCP_MAX_LOG_LINES env var)
  • handler_name: Optional handler name to read from a single file handler

Note: This tool reads only file-based handlers (*FileHandler classes). If your project logs to the console only, configure a FileHandler in your Django LOGGING settings so the AI can access log output. Example:

python
LOGGING = {
    "version": 1,
    "handlers": {
        "file": {
            "class": "logging.FileHandler",
            "filename": "django.log",
        },
    },
    "root": {"handlers": ["file"], "level": "INFO"},
}

Prompts

MCP prompts provide reusable message templates to help guide interactions with AI assistants.

1. search_django_docs

Generate a formatted prompt to help search for specific topics in Django documentation.

Arguments:

  • topic: The Django topic or feature to search for (e.g., "models", "queryset", "migrations", "authentication")

Returns: A formatted prompt that includes:

  • The current Django version being used
  • Direct links to the appropriate version of Django documentation
  • Guidance on what information to look for
  • Request for best practices and code examples

Example topics:

  • "models" - Learn about Django models and ORM
  • "queryset filtering" - Query optimization and filtering
  • "migrations" - Database schema management
  • "authentication" - User authentication and permissions
  • "middleware" - Request/response processing
  • "forms" - Form handling and validation

This prompt automatically adapts to your Django version (e.g., 5.2, 4.2) to ensure documentation compatibility.

Example Usage with AI Assistants

Once configured, you can ask your AI assistant questions like:

Using Tools:

  • "What models are in this Django project?"
  • "Show me all URL patterns"
  • "What's the database schema for the users table?"
  • "Are there any unapplied migrations?"
  • "What's the value of the DEBUG setting?"
  • "What's the URL for blog post with ID 5?"
  • "Reverse the 'post_detail' URL pattern with pk=10"
  • "Show me all published blog posts"
  • "Get the 10 most recent posts ordered by creation date"
  • "Find all featured posts in the blog"
  • "Show me recent error logs"

Using Prompts:

  • "Use the search_django_docs prompt for 'models'" - Get help finding Django model documentation
  • "Search Django docs for 'authentication'" - Learn about Django authentication
  • "Show me Django documentation about 'migrations'" - Migration best practices and guides

Development & Testing

The project includes a comprehensive test suite and a fixture Django project for development:

bash
# Run all tests with pytest
uv run pytest

# Run broad integration coverage
uv run pytest test_server.py

# Run focused MCP tool tests
uv run pytest test_auth_logic.py test_prompt.py test_query_model.py test_read_recent_logs.py test_run_check.py

# Run the MCP server with the test project
export PYTHONPATH="${PYTHONPATH}:./fixtures/testproject"
uv run django-ai-boost --settings testproject.settings

# Run linter
uv run ruff check .

# Auto-fix linting issues
uv run ruff check --fix .

# Format code
uv run ruff format .

The fixtures/testproject/ directory contains a complete Django application for testing all MCP tools. See fixtures/README.md for details about the test project structure.

Troubleshooting

"Django is not configured" Error

Make sure you've set the DJANGO_SETTINGS_MODULE environment variable or used the --settings flag:

bash
export DJANGO_SETTINGS_MODULE=myproject.settings
django-ai-boost

PYTHONPATH Issues

If Django can't find your project modules, add your project directory to PYTHONPATH:

bash
export PYTHONPATH="${PYTHONPATH}:/path/to/your/project"
django-ai-boost --settings myproject.settings

Or in your MCP client configuration:

json
{
  "env": {
    "PYTHONPATH": "/path/to/your/project",
    "DJANGO_SETTINGS_MODULE": "myproject.settings"
  }
}

MCP Server Not Connecting

  1. Check that the django-ai-boost command is accessible in your PATH
  2. Verify your MCP client configuration file syntax is valid JSON
  3. Check the logs in your AI tool (usually in settings or help menu)
  4. Try running the server manually to see any error messages:
    bash
    django-ai-boost --settings myproject.settings

Database Connection Issues

Ensure your Django database is properly configured and accessible. The MCP server needs the same database access as your Django application.

Port Already in Use (SSE Transport)

If you see an error like "Address already in use" when using SSE transport, the default port 8000 is likely occupied by another service (such as your Django development server). Use a different port:

bash
# Use a different port for the MCP server
django-ai-boost --settings myproject.settings --transport sse --port 8001

Note: The stdio transport (default) does not use network ports and will not have this issue.

Output Truncation in MCP Clients

Some MCP clients have display limits that may truncate long tool outputs:

PyCharm: Limits tool output to 2000 lines (~100 Django models with typical field counts) Claude Code: Truncates at ~700 characters in terminal display

Symptoms:

  • Message stating "output truncated due to length"
  • Incomplete model listings when calling list_models

Solution: Use the app_labels parameter to filter models by specific Django apps:

python
# Instead of listing all models (may truncate):
list_models()

# Filter by specific app(s):
list_models(app_labels=["blog"])
list_models(app_labels=["blog", "auth", "contenttypes"])

Verification: The truncation is happening client-side, not in the server. To verify:

  1. Count your Django models: python manage.py shell -c "from django.apps import apps; print(len(apps.get_models()))"
  2. Estimate lines: models × 20 lines per model ≈ total output lines
  3. If > 2000 lines (PyCharm) or very large (Claude Code), use app filtering

Requirements

  • Python 3.12+
  • Django 4.2+
  • FastMCP 3.2.4+

License

MIT License - see LICENSE file for details.

Inspiration

This project is inspired by Laravel Boost, which provides similar MCP functionality for Laravel applications.

Contributing

We welcome contributions from the community! Whether it's bug fixes, new features, documentation improvements, or bug reports, your help is appreciated.

Getting Started

  1. Fork the repository on GitHub
  2. Clone your fork locally:
    bash
    git clone https://github.com/YOUR_USERNAME/django-ai-boost.git
    cd django-ai-boost
  3. Install development dependencies:
    bash
    uv sync --dev
  4. Create a new branch for your changes:
    bash
    git checkout -b feature/your-feature-name
    # or
    git checkout -b fix/your-bug-fix

Development Workflow

  1. Make your changes in your feature branch
  2. Follow code style:
    bash
    # Check code style
    uv run ruff check .
    
    # Auto-fix style issues
    uv run ruff check --fix .
    
    # Format code
    uv run ruff format .
  3. Test your changes:
    bash
     # Run the test suite
     uv run pytest

Run broad integration coverage

uv run pytest test_server.py

# Test with the fixture project
export PYTHONPATH="${PYTHONPATH}:./fixtures/testproject"

uv run django-ai-boost --settings testproject.settings

4. **Commit your changes**:
```bash
git add .
git commit -m "feat: add new feature" # or "fix: resolve bug"

We follow Conventional Commits:

  • feat: for new features
  • fix: for bug fixes
  • docs: for documentation changes
  • chore: for maintenance tasks
  • test: for test changes
  • refactor: for code refactoring
  1. Push to your fork:
    bash
    git push origin feature/your-feature-name
  2. Create a Pull Request on GitHub from your fork to the main repository

Contribution Guidelines

  • Code Quality: Ensure your code passes linting (ruff check) and formatting (ruff format)
  • Testing: Add tests for new features and ensure existing tests pass
  • Documentation: Update the README and relevant documentation for new features
  • Commits: Use clear, descriptive commit messages following Conventional Commits
  • Pull Requests: Provide a clear description of what your PR does and why
  • Issues: Check existing issues before creating a new one

What to Contribute

We're especially interested in:

  • New MCP Tools: Add new tools to expose more Django functionality
  • Bug Fixes: Fix issues reported in GitHub Issues
  • Documentation: Improve setup guides, add examples, or clarify existing docs
  • Tests: Expand test coverage for existing features
  • Performance: Optimize slow operations or reduce memory usage
  • Compatibility: Ensure compatibility with different Django versions

Need Help?

  • Look at existing code for examples
  • Open a GitHub Issue for questions or discussions
  • Review closed PRs to see how others have contributed

Code of Conduct

Please be respectful and constructive in all interactions. We aim to maintain a welcoming and inclusive community.

Commercial Support

alt text

This project is maintained by Vinta Software. Our team of design and development experts is available to help your company launch successful Django-powered products. If you need any commercial support, feel free to get in touch: contact@vinta.com.br

安装

TypingMind
{
  "mcpServers": {
    "django-ai-boost": {
      "command": "django-ai-boost",
      "args": [
        "--settings",
        "{{config.DJANGO_SETTINGS_MODULE}}"
      ],
      "env": {
        "DJANGO_SETTINGS_MODULE": "<DJANGO_SETTINGS_MODULE>"
      }
    }
  }
}

将 Django AI Boost MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Django AI Boost 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 您可以在自己的设备上本地运行 MCP,也可以通过 URL 连接远程 MCP 服务器。

方式 1:使用本地连接器

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Django AI Boost 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Django AI Boost MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "django-ai-boost": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Django AI Boost MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Django AI Boost MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Django AI Boost 帮我完成这项任务吗?
Django AI Boost
当然,我看过了。
以下是我使用 Django AI Boost 得到的结果。

方式 2:添加 MCP 服务器 URL

如果 Django AI Boost 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 提供商提供的 MCP 服务器 URL。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 提供商提供的 MCP 服务器 URL 粘贴到“服务器 URL”字段中。
  2. 为 Django AI Boost 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接处于可用状态。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认列表中的 Django AI Boost 连接显示为可用状态。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 Django AI Boost 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 Django AI Boost 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Django AI Boost 帮我完成这项任务吗?
Django AI Boost
当然,我看过了。
以下是我使用 Django AI Boost 得到的结果。

常见问题

Django AI Boost MCP 服务器有什么用途?

Django AI Boost 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Django AI Boost MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Django AI Boost。

为什么在 TypingMind 中使用 Django AI Boost MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Django AI Boost 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Django AI Boost MCP 连接到 TypingMind?

在 TypingMind 中,您可以使用本地 MCP 连接器或添加远程 MCP 服务器的 URL 来连接 Django AI Boost。当服务器需要访问您设备上的文件、应用或私有资源时,请使用本地连接器;如果 MCP 服务器部署在远端,请使用服务器 URL。

Django AI Boost MCP 在 TypingMind 中提供哪些工具?

Django AI Boost 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Django AI Boost MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Django AI Boost 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇