Loggly MCP
概要
作者による説明(英語の原文)
Read-only Loggly search and analytics with aggregation-first traffic tools and IP intelligence.
PopNx MCPの3つの柱
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
- 利用者の声iレビューはまだありませんレビューは今後のステップで、アカウント機能と一緒に始まります
- 私たちの基本チェックi1項目中1項目に合格公開情報からチェック。コードはまだスキャンしていません
- 利用状況iとても新しい↓ 51/週 · ★ –
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンで動く
- トランスポート: stdio
- カテゴリ: マーケティング・SNS
- 入力が必要なもの:LOGGLY_SUBDOMAIN, LOGGLY_TOKEN
インストール
使っているAIアプリを選んで、設定をコピーしてください。
インストールの前に
- 基本チェック:1項目中1項目に合格
- あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
- 自分で入力するもの:
LOGGLY_SUBDOMAIN,LOGGLY_TOKEN
「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
- npmNode.jsのインストール(npxコマンドに必要)
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"loggly": {
"command": "npx",
"args": [
"-y",
"@andrewbabu/loggly-mcp"
],
"env": {
"LOGGLY_SUBDOMAIN": "your-value",
"LOGGLY_TOKEN": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add loggly --env LOGGLY_SUBDOMAIN=your-value --env LOGGLY_TOKEN=your-value -- npx -y @andrewbabu/loggly-mcp動かす前に、空欄の値を入力してください。
または、設定を自分でコピーする
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"loggly": {
"command": "npx",
"args": [
"-y",
"@andrewbabu/loggly-mcp"
],
"env": {
"LOGGLY_SUBDOMAIN": "your-value",
"LOGGLY_TOKEN": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
または、設定を自分でコピーする
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"loggly": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@andrewbabu/loggly-mcp"
],
"env": {
"LOGGLY_SUBDOMAIN": "your-value",
"LOGGLY_TOKEN": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
自分で入力する値
- Loggly account subdomain or full Loggly URL (e.g. your-subdomain or https://your-subdomain.loggly.com).
- Loggly API token (read access).
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント andrewbabu で確認済みです
- … 未チェック
今もメンテナンスされている
このリポジトリはまだGitHubから読み取っていません
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
マーケティング・SNSのほかのサーバーとの比較i
- このカテゴリのほかの3597件のうち0%よりスターが多い
- このカテゴリのほかの3597件のうち45%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの3597件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Loggly MCPは安全ですか?
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
入力が必要なもの:LOGGLY_SUBDOMAIN, LOGGLY_TOKEN
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は–、最新バージョン(1.3.0)がレジストリに届いたのは35 日前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
代わりに使えるものは?
同じカテゴリには:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Google Analytics MCP
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Loggly MCP
Read-only Model Context Protocol (MCP) server for Loggly /apiv2/* APIs, plus IP intelligence (RDAP, GreyNoise, AbuseIPDB). Exposes Loggly search/analytics/field tools, aggregation-first traffic tools, and IP-context tools, while blocking write endpoints.
Skill Usage
For efficient log retrieval (less token use) and summarization, pair this server with a skill.
Quickstart
Install from npm
LOGGLY_SUBDOMAIN=your-subdomain LOGGLY_TOKEN=your-token npx -y @andrewbabu/loggly-mcp
MCP client configuration:
{
"mcpServers": { "loggly": { "command": "npx", "args": ["-y", "@andrewbabu/loggly-mcp"], "env": { "LOGGLY_SUBDOMAIN": "your-subdomain", "LOGGLY_TOKEN": "your-token" } } } }
Run from source
git clone https://github.com/andrewbabu/loggly-mcp.git
cd loggly-mcp npm install cp .env.example .env
Edit .env with your Loggly credentials, then run:
npm start
Once the repo is trusted in Codex, the MCP server can also be started automatically via .codex/config.toml.
Configuration
The server loads .env from its working directory on startup.
Required
LOGGLY_SUBDOMAINLoggly account subdomain or full Loggly URL (e.g.your-subdomainorhttps://your-subdomain.loggly.com)LOGGLY_TOKENLoggly API token
Optional
LOGGLY_AUTH_MODEbearer(default) orbasicLOGGLY_MAX_RETRIESDefault:2LOGGLY_REQUEST_TIMEOUT_MSDefault:15000LOGGLY_LOG_LEVELerror,warn,info(default), ordebug
Remote (HTTP) Server
For a stdio server anyone on the team can reach from Claude Code without a local checkout, run the HTTP variant instead and host it on an internal server/VM.
cp .env.example .env
Edit .env with your Loggly credentials plus MCP_BEARER_TOKEN (generate one with node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"), then:
npm run start:http
This starts a stateless Streamable HTTP MCP server on MCP_HTTP_PORT (default 8787):
GET /healthz— unauthenticated liveness check.POST /mcp— the MCP endpoint. RequiresAuthorization: Bearer; every other request to/mcpgets401.
The Loggly credentials stay server-side — everyone connecting shares the same Loggly account access. MCP_BEARER_TOKEN only gates access to the MCP server itself, so treat it as a secret and rotate it if it leaks (e.g. re-generate and redistribute).
Only run this behind your internal network/VPN, not exposed directly to the public internet — there's a single shared token, not per-user auth.
Connecting from Claude Code
Each org member adds the remote server once:
claude mcp add --transport http loggly https://your-internal-host:8787/mcp \
--header "Authorization: Bearer "
Swap in the internal hostname/port you deployed to and the token you were given.
Running with Docker
docker build -t loggly-mcp .
docker run -d --name loggly-mcp -p 8787:8787 --env-file .env loggly-mcp
Multiple Accounts / Domains
The server can hold credentials for several Loggly accounts (different subdomains, different tokens) at once and target them per tool call.
Set LOGGLY_ACCOUNTS to a JSON object mapping an account name to its credentials:
LOGGLY_ACCOUNTS={"acme":{"subdomain":"acme","token":"acme_token","authMode":"bearer"},"beta":{"subdomain":"beta","token":"beta_token"}}
When LOGGLY_ACCOUNTS is set, it replaces LOGGLY_SUBDOMAIN/LOGGLY_TOKEN/LOGGLY_AUTH_MODE. Every tool then accepts an optional account argument (e.g. account: "acme") to pick which account's credentials to use for that call.
- If
accountis omitted, the server usesLOGGLY_DEFAULT_ACCOUNTif set, otherwise"default", otherwise the single configured account if there's only one. - An unknown
accountvalue returns an error listing the configured account names. iterate_events_nextcan also infer the account from thenext_urlhost whenaccountis omitted, as long as exactly one configured account matches that host.
Existing single-account setups (just LOGGLY_SUBDOMAIN/LOGGLY_TOKEN) keep working unchanged — they're treated as one account named "default".
Aggregation-First Traffic Tools
Raw event dumps are slow and expensive to reason about. These tools return a summary — totals, top-N breakdowns, a bucketed timeline, and a small representative sample — instead:
search_logs— the general-purpose version: query + time range in, aggregated summary out.traffic_by_ip/traffic_by_host/traffic_by_path— same aggregation, pre-scoped to one IP/hostname/path.group_by_ip/group_by_path/group_by_user_agent— facet counts only (thin wrappers overfield_facets), for when you just need a breakdown, not the full aggregate.timeline— bucketed counts over a range, computed client-side via repeated/apiv2/events/countcalls (Loggly'svolume-metricsendpoint doesn't accept a free-text query, so this is the only way to get a timeline for an arbitrary search).sample_events— a handful of representative raw events, when you need examples rather than the complete result set.
Field naming depends on how each Loggly source parses its logs, and can differ between accounts and even between tags within one account — so these tools resolve field names discovery-first: for any role not explicitly overridden (host_field/path_field/status_field/user_agent_field/ ip_field arguments, or the LOGGLY_FIELD_HOST/_PATH/_STATUS/_USER_AGENT/_IP env vars), they check /apiv2/fields/ for the actual query and match candidates against known role patterns:
- Exactly one match → used automatically, reported under
discovered_fieldsin the result. - Multiple plausible matches (e.g. a source with both
ClientIpandCustIP) → never guessed between — reported underambiguous_fieldsinstead, falling back to the configured default. Pass the correct one explicitly via the matching*_fieldargument. - No match → falls back to the configured default (
host,path,status,user_agent,ip).
Run list_fields yourself if you want to see every candidate before deciding on an override.
IP Intelligence
rdap_lookup— IP ownership/network registration (RIR, netblock, org, country) via public RDAP (rdap.org). No API key required.ip_reputation— GreyNoise (internet-wide scanning noise) + AbuseIPDB (community abuse reports) for an IP. RequiresGREYNOISE_API_KEY/ABUSEIPDB_API_KEY; either one missing just comes back asavailable: falsefor that source, not an error.get_ip_context— combines all of the above with Loggly traffic (1h/24h/30d counts, first/last seen, hosts, top paths) checked across every configured Loggly account unlessaccountis given, and flagscross_domain_correlationwhen the IP shows activity in more than one account. Per thebot-traffic-triageplaybook, that cross-domain pattern is the single strongest signal for distinguishing targeted reconnaissance from background noise.
Treat all IP-intel output as one input among several — identity/reputation data (who owns an IP, third-party scanner reports) should carry less weight than behavioral evidence from your own logs. See the bot-traffic-triage skill for the full investigation methodology.
Logging
Logs are written to stderr to avoid interfering with MCP stdio traffic. Use LOGGLY_LOG_LEVEL to control verbosity. Default is info.
Timeouts, Retries & Concurrency
Requests enforce a per-call timeout of LOGGLY_REQUEST_TIMEOUT_MS (default 15000). Transient failures (429, 500 with timeout-like body, 503, 504, or network timeouts) are retried up to LOGGLY_MAX_RETRIES times, honoring a Retry-After header on 429 when Loggly sends one, falling back to exponential backoff otherwise.
The aggregation tools (search_logs, traffic_by_*, get_ip_context, etc.) fan out several requests per call via Promise.all (facets + timeline buckets + a sample). LOGGLY_MAX_CONCURRENT_REQUESTS (default 4) caps how many of those run at once per account, so that fan-out doesn't trip Loggly's own rate limit by itself. If you still see 429s from a single aggregation call, lower this; if Loggly's limit is more generous, raise it.
Tool Manifest
Tool metadata is stored in tool-manifest.json and verified against src/server.js.
npm run verify:manifest
Smoke Test
Smoke test runs without Loggly credentials by setting LOGGLY_SMOKE_TEST=1.
npm run smoke
Implemented MCP Tools
Low-level Loggly API wrappers:
connection_testcreate_searchget_eventssearch_and_get_eventsiterate_events_pageiterate_events_nextcount_eventsvolume_metricsstats_querylist_fieldsfield_facetsraw_api_call
Aggregation-first traffic tools:
search_logstraffic_by_iptraffic_by_hosttraffic_by_pathgroup_by_ipgroup_by_pathgroup_by_user_agenttimelinesample_events
IP intelligence:
rdap_lookupip_reputationget_ip_context
Examples
Example tool argument payloads are in examples/.
Development
npm test
npm test runs manifest verification and the smoke test. CI runs the same checks in .github/workflows/ci.yml.
Versioning
VERSIONcontains the current release version.CHANGELOG.mdtracks changes by release.
Security Notes
.envfiles must never be committed.- Tokens and API keys (
LOGGLY_TOKEN,LOGGLY_ACCOUNTS,GREYNOISE_API_KEY,ABUSEIPDB_API_KEY,MCP_BEARER_TOKEN) are treated as secrets. - This server enforces read-only access to Loggly
/apiv2/*endpoints. IP-intel calls (RDAP/GreyNoise/AbuseIPDB) are read-only GET requests to those third-party services; no Loggly credentials are ever sent to them, and no IP-intel keys are sent to Loggly.