MCP client for Pensero - Query engineering metrics from Claude Desktop
Project description
Pensero MCP Client
Query your engineering metrics from Claude Desktop using the Pensero MCP client.
What is this?
This is a lightweight client that connects Claude Desktop to your Pensero account, allowing you to:
- Query pull requests, commits, and code reviews
- Analyze team productivity and delivery metrics
- Aggregate engineering data with natural language queries
- Get insights from work items, tickets, and documents
Installation
Quick Start (Recommended)
uvx pensero-mcp-client
This will download and run the latest version without installing anything permanently.
Alternative: Install with pip
pip install pensero-mcp-client
Setup
Step 1: Get Your API Token
- Log in to Pensero
- Go to Settings → API Tokens
- Click Create New Token
- Give it a name (e.g., "Claude Desktop")
- Copy the
token:secretpair (you'll only see this once!)
Step 2: Configure Claude Desktop
Edit your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this configuration:
{
"mcpServers": {
"pensero": {
"command": "uvx",
"args": ["pensero-mcp-client"],
"env": {
"PENSERO_API_TOKEN": "tk_xxxxxxxxxxxxx:sk_xxxxxxxxxxxxx"
}
}
}
}
Note: Using uvx automatically downloads and runs the latest version - no manual installation needed!
Replace tk_xxxxxxxxxxxxx:sk_xxxxxxxxxxxxx with your actual token from Step 1.
Step 3: Restart Claude Desktop
Quit and restart Claude Desktop for the configuration to take effect.
Usage
Once configured, you can ask Claude to query your Pensero data:
Example Queries
List available data:
"What data models are available in Pensero?"
Query pull requests:
"Show me all merged pull requests from last week"
Aggregate metrics:
"What's the average number of lines changed per PR by each developer this month?"
Complex queries:
"Find all open pull requests created by the Backend team, grouped by repository"
Team analytics:
"How many tickets did each team member complete this sprint?"
Troubleshooting
"PENSERO_API_TOKEN environment variable not set"
Make sure you've added the token to your Claude Desktop configuration and restarted Claude Desktop.
"Authentication failed"
- Verify your token is correct
- Check the token hasn't been revoked in Pensero settings
- Ensure the token format is
token:secret(with colon)
"Connection error"
- Check your internet connection
- Verify you can access https://pensero.com
"Rate limit exceeded"
You've made too many requests. The default limit is 1,000 requests per hour per user. Wait a few minutes and try again.
Server not starting
Check Claude Desktop logs:
- macOS:
~/Library/Logs/Claude/mcp*.log - Windows:
%APPDATA%\Claude\logs\mcp*.log
Available Models
The client provides access to these Pensero data models:
Git
- GitPullRequest: Pull requests/merge requests with metadata, metrics, and state
- GitPullRequestReview: Code reviews on pull requests
- GitRepository: Git repositories tracked in Pensero
- GitUser: Git users (developers contributing to repositories)
Ticketing
- Ticket: Work tickets from issue tracking systems (Jira, Linear, etc.)
- TicketingUser: Users from ticketing systems
- TicketingRepository: Ticketing system integrations (Jira projects, Linear workspaces, etc.)
BOW (Bag of Work)
- BowItem: Unified view of work across PRs, tickets, documents, commits
- BowChunk: Chunks of work within BOW items
- SuperChunk: Aggregated chunks representing larger work units
Documents
- Document: Documents from Notion, Confluence, Google Drive
- DocumentUser: Users from document systems
- DocumentComment: Comments on documents
HR
- OrganizationUser: Organization users (team members)
- Team: Engineering teams
- TeamMember: Team membership records
Security
- Your API token is stored in Claude Desktop's configuration file
- The client only makes HTTPS requests to Pensero
- Tokens can be revoked at any time from Pensero settings
- All queries respect your organization's permissions and data scoping
Support
- Documentation: help.pensero.ai
- Email: support@pensero.com
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pensero_mcp_client-0.1.1.tar.gz.
File metadata
- Download URL: pensero_mcp_client-0.1.1.tar.gz
- Upload date:
- Size: 66.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f21dc42fa8a26de0d29b1a6e9cf9bd0671f918ed4d294cf3e58035b2f50be7
|
|
| MD5 |
3fffcae5f419cb4d5848c1f0434cdec2
|
|
| BLAKE2b-256 |
7b3344ecb5ecd47e6970ae34fe294373e5baba91dc64dc8ac1d4f2e850ac85b6
|
File details
Details for the file pensero_mcp_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pensero_mcp_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eb1b55d8b13bbbf5c64cb4f1d16b19d587d67bbb4d60306979900148d74576b
|
|
| MD5 |
ec868f353586eada6ef0799fb680cc9a
|
|
| BLAKE2b-256 |
0eb9204aec561481c9dff6097252b8afac0601a3ba53dfaf877e1e72184d9b22
|