
Security News
upm Launches as a Fast, Tiny Package Manager Written in TypeScript
upm uses Node.js to deliver fast npm installs in about 250 KB, with a JavaScript API and security defaults.
@codai/analytics-mcp
Advanced tools
Analytics MCP Server - Model Context Protocol server for data analytics and metrics collection
A comprehensive Model Context Protocol (MCP) server for data analytics, metrics collection, and business intelligence within the CODAI ecosystem.
cd packages/analytics-mcp
npm install
The Analytics MCP server can be started directly or integrated into your MCP client:
# Run the server
npm start
# Or run with ts-node for development
npx ts-node src/index.ts
Collect a metric data point for analytics.
{
name: "response_time",
value: 150,
service: "api-gateway",
tags: {
endpoint: "/api/users",
method: "GET"
}
}
Query and aggregate metric data with advanced filtering.
{
metrics: ["response_time", "error_count"],
timeRange: {
start: "2024-01-01T00:00:00Z",
end: "2024-01-02T00:00:00Z"
},
aggregation: "avg",
groupBy: ["service"],
filters: {
service: "api-gateway"
}
}
Generate AI-powered insights for a specific metric.
{
metricName: "response_time",
days: 7
}
Create custom analytics dashboards.
{
name: "Service Performance",
description: "Real-time service performance metrics",
widgets: [
{
type: "chart",
title: "Response Time Trend",
query: { /* analytics query */ },
config: { chartType: "line" }
}
]
}
Get comprehensive metrics for a specific service.
{
serviceName: "api-gateway",
hours: 24
}
// Collect performance metrics
await mcpClient.callTool('collect_metric', {
name: 'api_response_time',
value: responseTime,
service: 'codai-api',
tags: {
endpoint: req.path,
method: req.method,
status: res.statusCode
}
});
// Query performance trends
const insights = await mcpClient.callTool('query_metrics', {
metrics: ['api_response_time'],
timeRange: {
start: new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString(),
end: new Date().toISOString()
},
aggregation: 'avg',
groupBy: ['endpoint']
});
// Create a comprehensive service dashboard
const dashboard = await mcpClient.callTool('create_dashboard', {
name: 'CODAI Ecosystem Health',
description: 'Real-time health and performance metrics',
widgets: [
{
type: 'metric',
title: 'Average Response Time',
query: {
metrics: ['response_time'],
timeRange: { start: '-1h', end: 'now' },
aggregation: 'avg'
}
},
{
type: 'chart',
title: 'Error Rate Trend',
query: {
metrics: ['error_count'],
timeRange: { start: '-24h', end: 'now' },
aggregation: 'sum',
groupBy: ['hour']
},
config: { chartType: 'line', color: 'red' }
}
]
});
The Analytics MCP server provides:
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run tests
npm test
The server can be configured through environment variables:
# Optional: Database connection (defaults to in-memory)
DATABASE_URL=postgresql://user:pass@localhost/analytics
# Optional: AI insights provider
AI_PROVIDER=openai
AI_API_KEY=your-api-key
# Optional: Export storage location
EXPORT_PATH=/tmp/analytics-exports
MIT License - see LICENSE file for details
FAQs
Analytics MCP Server - Model Context Protocol server for data analytics and metrics collection
The npm package @codai/analytics-mcp receives a total of 0 weekly downloads. As such, @codai/analytics-mcp popularity was classified as not popular.
We found that @codai/analytics-mcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
upm uses Node.js to deliver fast npm installs in about 250 KB, with a JavaScript API and security defaults.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.