PHPackages                             eduardocruz/laravel-telescope-mcp-server-mvp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. eduardocruz/laravel-telescope-mcp-server-mvp

ActiveProject[Debugging &amp; Profiling](/categories/debugging)

eduardocruz/laravel-telescope-mcp-server-mvp
============================================

A PHP MCP server for Laravel Telescope integration with Cursor IDE

0.0.2(10mo ago)09MITPHPPHP ^8.1

Since Jun 21Pushed 10mo agoCompare

[ Source](https://github.com/eduardocruz/laravel-telescope-mcp-server-mvp)[ Packagist](https://packagist.org/packages/eduardocruz/laravel-telescope-mcp-server-mvp)[ RSS](/packages/eduardocruz-laravel-telescope-mcp-server-mvp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Laravel Telescope MCP Server (PHP)
==================================

[](#laravel-telescope-mcp-server-php)

A Model Context Protocol (MCP) server built in PHP that provides AI agents with direct access to Laravel Telescope data, enabling efficient debugging and analysis of Laravel applications.

Project Overview
----------------

[](#project-overview)

This project is a PHP implementation of a Laravel Telescope MCP server, inspired by [bradleybernard/TelescopeMCP](https://github.com/bradleybernard/TelescopeMCP) but built using the [php-mcp/server](https://github.com/php-mcp/server) library instead of Python.

### Key Goals

[](#key-goals)

- **Proof of Concept**: Create the most basic MCP server to demonstrate Laravel Telescope integration
- **PHP Native**: Built entirely in PHP using the php-mcp/server library
- **Cursor Integration**: Optimized for Cursor IDE with deeplink support for seamless development workflow
- **Minimal Viable Product**: Focus on core functionality to get something working quickly

Features (Planned)
------------------

[](#features-planned)

### Core MCP Tools

[](#core-mcp-tools)

- `telescope_requests` - List recent HTTP requests from Telescope
- `telescope_search` - Search requests with basic filters (status, method, URI pattern)
- `telescope_request_details` - Get detailed information about a specific request
- `telescope_queries` - View database queries for a specific request

### Cursor Integration

[](#cursor-integration)

- Deeplink support for quick server startup and debugging
- Development-friendly configuration
- Easy setup for Laravel projects

Architecture
------------

[](#architecture)

```
Laravel App → Telescope → MySQL Database
                              ↓
                    PHP MCP Server (php-mcp/server)
                              ↓
                         Cursor IDE
                              ↓
                      AI Assistant Integration

```

Quick Start (Planned)
---------------------

[](#quick-start-planned)

### Prerequisites

[](#prerequisites)

- PHP 8.1+
- Composer
- Laravel application with Telescope installed
- Cursor IDE

### Installation

[](#installation)

```
git clone
cd laravel-telescope-mcp-server
composer install
```

### Configuration

[](#configuration)

```
# Copy environment file
cp .env.example .env

# Configure database connection to your Laravel app
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_laravel_db
DB_USERNAME=your_username
DB_PASSWORD=your_password
```

### Running the Server

[](#running-the-server)

#### Option 1: Direct PHP Execution

[](#option-1-direct-php-execution)

```
php server.php
```

#### Option 2: Using Composer Script

[](#option-2-using-composer-script)

```
composer run serve
```

#### Option 3: Using PHPX (Recommended)

[](#option-3-using-phpx-recommended)

If you have [PHPX](https://github.com/eduardocruz/phpx) installed:

```
phpx laravel-telescope-mcp-server
```

### Cursor Deeplink Integration

[](#cursor-deeplink-integration)

To integrate with Cursor, you'll need to create a deeplink configuration. Here's the MCP server configuration for Cursor:

#### For Cursor IDE Settings

[](#for-cursor-ide-settings)

Add this to your Cursor MCP configuration:

```
{
  "telescope": {
    "command": "php",
    "args": [
      "/path/to/laravel-telescope-mcp-server/server.php"
    ],
    "env": {
      "DB_HOST": "127.0.0.1",
      "DB_PORT": "3306",
      "DB_DATABASE": "your_laravel_db",
      "DB_USERNAME": "your_username",
      "DB_PASSWORD": "your_password"
    }
  }
}
```

#### Alternative: Using PHPX

[](#alternative-using-phpx)

```
{
  "telescope": {
    "command": "phpx",
    "args": [
      "laravel-telescope-mcp-server"
    ],
    "env": {
      "DB_HOST": "127.0.0.1",
      "DB_PORT": "3306",
      "DB_DATABASE": "your_laravel_db",
      "DB_USERNAME": "your_username",
      "DB_PASSWORD": "your_password"
    }
  }
}
```

#### Generating Cursor Deeplink

[](#generating-cursor-deeplink)

1. Get your server configuration JSON
2. Use `JSON.stringify()` to convert it and base64 encode it
3. Create the deeplink: `cursor://mcp/install?name=telescope&config=BASE64_ENCODED_CONFIG`

Example helper script for generating the deeplink:

```

## Development Roadmap

### Phase 1: Basic MCP Server
- [x] Project setup and README
- [ ] Basic MCP server using php-mcp/server
- [ ] Database connection to Laravel Telescope tables
- [ ] Simple request listing tool

### Phase 2: Core Tools
- [ ] Request search and filtering
- [ ] Request detail retrieval
- [ ] Query analysis tool
- [ ] Basic error handling

### Phase 3: Cursor Integration
- [ ] Deeplink configuration
- [ ] Development workflow optimization
- [ ] Documentation for Cursor setup

### Phase 4: Enhancement
- [ ] Performance optimization
- [ ] Additional Telescope data types (jobs, cache, etc.)
- [ ] Better error messages and debugging

## Technical Stack

- **Language**: PHP 8.1+
- **MCP Library**: [php-mcp/server](https://github.com/php-mcp/server)
- **Database**: MySQL/MariaDB (Laravel Telescope tables)
- **IDE Integration**: Cursor with deeplink support

## Inspiration

This project draws inspiration from:
- [bradleybernard/TelescopeMCP](https://github.com/bradleybernard/TelescopeMCP) - Python implementation
- [php-mcp/server](https://github.com/php-mcp/server) - PHP MCP server library

## Why PHP?

- Native integration with Laravel ecosystem
- Leverages existing PHP knowledge for Laravel developers
- Direct access to Laravel's database structure and conventions
- Easier deployment alongside existing PHP/Laravel infrastructure

## Contributing

This is a proof-of-concept project focused on getting a minimal viable product working. Contributions welcome once the basic functionality is established.

## License

MIT License - see LICENSE file for details.

---

**Status**: 🚧 Early Development - Proof of Concept Phase

**Next Steps**: Set up basic MCP server structure using php-mcp/server library.
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance53

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

325d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c93c0c99e6e0d2753ac54fcde7e5ac2a81cef273c699a64e20c3c0bb33588548?d=identicon)[eduardocruz](/maintainers/eduardocruz)

---

Top Contributors

[![eduardocruz](https://avatars.githubusercontent.com/u/161669?v=4)](https://github.com/eduardocruz "eduardocruz (18 commits)")

### Embed Badge

![Health badge](/badges/eduardocruz-laravel-telescope-mcp-server-mvp/health.svg)

```
[![Health](https://phpackages.com/badges/eduardocruz-laravel-telescope-mcp-server-mvp/health.svg)](https://phpackages.com/packages/eduardocruz-laravel-telescope-mcp-server-mvp)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[steevanb/php-backtrace

Nice debug\_backtrace() dump, with call and code preview

22142.6k5](/packages/steevanb-php-backtrace)[milo/vendor-versions

Bar with versions list of vendor libraries for Tracy

19155.1k5](/packages/milo-vendor-versions)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
