# django-telescope

This MCP server gives an AI assistant ways to inspect a Django project, including its models, database schema, settings, and logs. Use it when an agent needs project context.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 114
- Author: vintasoftware
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/vintasoftware/django-ai-boost
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/mcp/django-telescope

## What it does

The server exposes tools for inspecting a Django codebase. An assistant can list models, URLs, and management commands, examine database schema and migrations, query settings by dotted path, and read filtered application logs. Its tools are read-only, so they don’t alter project data.

To start it, provide Django’s settings module through `DJANGO_SETTINGS_MODULE` or the `--settings` option. The default transport is stdio; use SSE for network access. Production deployments using SSE require a Bearer token, while stdio has no authentication. That distinction matters if the server will be reachable remotely.

For Claude Code, add the server with `claude mcp add` and run it through `uvx`. Configuration examples are also provided for Codex, Cursor, and other MCP clients. Set the settings module to the one used by your Django project before connecting.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `DJANGO_SETTINGS_MODULE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add django-telescope -e DJANGO_SETTINGS_MODULE=<DJANGO_SETTINGS_MODULE> -- uvx django-telescope
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from django-telescope <command>

### Codex

**Platform CLI**
```bash
codex mcp add django-telescope --env DJANGO_SETTINGS_MODULE=<DJANGO_SETTINGS_MODULE> -- uvx django-telescope
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from django-telescope <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "django-telescope": {
            "command": "uvx",
            "args": [
                "django-telescope"
            ],
            "env": {
                "DJANGO_SETTINGS_MODULE": "<DJANGO_SETTINGS_MODULE>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from django-telescope <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "django-telescope": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "django-telescope"
            ],
            "env": {
                "DJANGO_SETTINGS_MODULE": "<DJANGO_SETTINGS_MODULE>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from django-telescope <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e DJANGO_SETTINGS_MODULE=<DJANGO_SETTINGS_MODULE> django-telescope uvx django-telescope
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from django-telescope <command>

## When to use it
- inspect models and management commands in a Django project
- review database schema, migrations, and relationships
- look up a Django setting by its dotted path
- read filtered application logs

## Example prompts
- List the models and management commands in my Django project.
- Check the database schema and show related models.
- Look up the database setting and read recent application logs.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16717
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40409
- [OpenWork MCP Gateway](https://affpapa.org/en/nevibecode/mcp/openwork-mcp-gateway.md) — MCP server · ★ 24242
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18727
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9366
- [basebalance.cloud — x402 RPC & MCP gateway](https://affpapa.org/en/nevibecode/mcp/basebalancecloud-x402-rpc-mcp-gateway.md) — MCP server · ★ 7506

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
