Skip to main content
Glama
Analytical MCP Server

Analytical MCP Server

分析MCPサーバー

高度な分析、調査、自然言語処理機能を提供する特殊なモデル コンテキスト プロトコル (MCP) サーバー。

主な特徴

分析ツール

  • データセット分析

  • 意思決定分析

  • 相関分析

  • 回帰分析

  • 時系列分析

  • 仮説検定

高度なNLP機能

  • 強化された事実抽出

  • 名前付きエンティティ認識

  • 共参照解決

  • 関係抽出

  • 感情分析

  • テキストの類似性

  • 品詞タグ付け

  • 見出語化

  • スペルチェック

Related MCP server: Sequential Thinking MCP Server

インストール

前提条件

  • Node.js (v20+)

  • npm

  • Exa API キー(研究および高度な NLP 機能用)

設定

  1. リポジトリをクローンする

  2. 依存関係をインストールします:

    npm install
  3. 環境変数を設定します。

    # Copy the example environment file
    cp .env.example .env
    
    # Edit .env and add your API keys
    # You'll need an Exa API key for research functionality
  4. プロジェクトをビルドします。

    npm run build

使用法

ランニングツール

各ツールは特定のパラメータを指定して呼び出すことができます。例:

// Analyze a dataset
const datasetAnalysis = await analyzeDataset([1, 2, 3, 4, 5], 'summary');

// Verify research claims
const researchVerification = await researchVerification.verifyResearch({
  query: 'Climate change impacts',
  sources: 3
});

// Extract entities from text
const entities = await advancedNER.recognizeEntities(
  "Apple Inc. is planning to open a new headquarters in Austin, Texas."
);

高度なNLPデモ

付属の NLP デモを実行して、高度な機能が実際にどのように機能するかを確認できます。

npm run build
node examples/advanced_nlp_demo.js

発達

利用可能なスクリプト

  • npm run build : TypeScriptをコンパイルする

  • npm test : すべてのテストを実行する

  • npm run test:integration : 統合テストのみを実行する

  • npm run test:exa : Exa Research API テストを実行する

  • npm run test:research : リサーチ検証テストを実行する

  • npm run test:server : サーバーツール登録テストを実行する

  • npm run lint : コードの品質をチェックする

  • npm run format : コードのフォーマット

  • npm run nlp:demo : 高度なNLPデモを実行する

テストスクリプト

特定のテスト スイートを実行するための専用スクリプトを提供します。

Unix/Linux/Mac

# Run all integration tests with a summary report
./tools/run-all-integration-tests.sh

# Run specific test suites
./tools/run-exa-tests.sh
./tools/run-research-tests.sh
./tools/run-server-tests.sh
./tools/run-api-key-tests.sh
./tools/run-data-pipeline-tests.sh
./tools/run-market-analysis-tests.sh

ウィンドウズ

# Run all integration tests with a summary report
.\tools\run-all-integration-tests.bat

主要技術

  • タイプスクリプト

  • モデルコンテキストプロトコルSDK

  • 研究とNLPのためのExa API

  • 自然言語処理ライブラリ

  • テスト用のJest

高度なNLP実装

分析 MCP サーバーは、以下を使用して高度な NLP 機能を実装します。

  • コンテキスト認識エンティティ認識のためのExa Research API

  • 基本的なNLP操作のための自然言語ツールキット

  • オフライン機能のためのカスタムルールベースのフォールバックメカニズム

  • 信頼性スコアリングによる強化された事実抽出

  • エンティティ間の関係抽出

詳細については、高度な NLP ドキュメントを参照してください。

必要なAPIキー

このプロジェクトには次の API キーが必要です。

  • EXA_API_KEY : 研究統合と高度なNLPに使用されます

.env.exampleファイルには、使用可能なすべての構成オプションが含まれています。

  • APIキー

  • 機能フラグ

  • キャッシュ設定

  • NLP構成

  • サーバー構成

このファイルをプロジェクト ルートの.envにコピーし、実際の API キーで更新して開始します。

貢献

  1. リポジトリをフォークする

  2. 機能ブランチを作成する

  3. 変更をコミットする

  4. ブランチにプッシュする

  5. プルリクエストを作成する

ライセンス

MITライセンス

Available Tools

12 tools
advanced_data_preprocessingA

Transform a numeric series for downstream modeling: min-max normalization, z-score standardization, missing-value handling, or IQR outlier detection. Returns a markdown report with the transform's parameters and a preview of the resulting values. Use analyze_dataset to describe data without changing it.

Inputs: data (required), preprocessingType (required).

advanced_regression_analysisA

Fit a regression model (linear, polynomial, logistic, or multivariate) predicting a named dependent variable from named predictor columns. Returns a markdown report with fitted coefficients, performance metrics, and interpretation. Use this when you have a designated outcome to predict; for association strength without a model use advanced_statistical_analysis, and to score existing predictions use ml_model_evaluation.

Inputs: data (required), regressionType (required), dependentVariable (required), independentVariables (required), +6 more.

advanced_statistical_analysisA

Compute per-column descriptive statistics, or Pearson correlation for every numeric column pair, over a table of records. Returns a markdown report (mean/median/std/variance/min/max per column, or r plus a weak/moderate/strong label per pair); non-numeric columns are ignored. Use analyze_dataset for a single numeric series; for correlation significance (p-values) use hypothesis_testing; to fit a predictive model use advanced_regression_analysis.

Inputs: data (required), analysisType (required).

analyze_datasetA

Summarize a single numeric series with descriptive statistics. Returns a markdown report: 'summary' gives count/min/max/mean/sum; 'stats' adds median, quartiles, standard deviation, variance, and coefficient of variation. Accepts a number[] or an array of objects (the first numeric property is used). For multi-column tables or cross-variable correlation use advanced_statistical_analysis; to transform values use advanced_data_preprocessing.

Inputs: data (required), analysisType.

data_visualization_generatorA

Generate a chart specification (Vega-Lite) plus rendering instructions for a dataset — it describes a chart, it does not render an image. Supports scatter, line, bar, histogram, box, heatmap, pie, violin, and correlation plots. Returns a markdown report with the data-point count, the spec, and usage guidance.

Inputs: data (required), variables (required), visualizationType (required), title, +2 more.

decision_analysisA

Rank options against weighted criteria with a weighted-sum decision matrix. Returns a markdown report: ranked options, a per-option breakdown (score × weight contribution, strengths, weaknesses), and a recommendation. Weights are normalized to sum to 1; omit them for equal weighting.

Inputs: scores (required), options (required), criteria (required), weights.

hypothesis_testingA

Run a statistical hypothesis test and report the p-value with a reject / fail-to-reject decision at the chosen alpha. Supports independent (Welch) and paired t-tests, Pearson-correlation significance, chi-square independence, and one-way ANOVA. Returns a markdown report with the test statistic, p-value, and conclusion. Use this when you need significance; for descriptive correlation without inference use advanced_statistical_analysis.

Inputs: data (required), testType (required), alpha, variables, +1 more.

logical_argument_analyzerA

Assess a natural-language argument for structure, validity, strength, and fallacies. Returns a markdown analysis; 'comprehensive' (default) runs all four plus optional improvement recommendations. Use this for overall argument quality; to only flag and name fallacies use logical_fallacy_detector.

Inputs: argument (required), analysisType, includeRecommendations.

logical_fallacy_detectorA

Detect and name logical fallacies in text via pattern matching, each with a confidence score, description, and before/after examples. Returns a markdown report grouped by category with an overall severity assessment. Use this to flag specific fallacies; for a full argument assessment use logical_argument_analyzer.

Inputs: text (required), categories, includeExamples, confidenceThreshold, +1 more.

ml_model_evaluationA

Score an existing model's predictions against actual values. Classification returns accuracy/precision/recall/F1 from a binary (0/1) confusion matrix; regression returns MSE/MAE/RMSE/R². Returns a markdown report of the requested metrics plus sample count. This scores supplied predictions; to fit a model from raw data use advanced_regression_analysis.

Inputs: modelType (required), actualValues (required), predictedValues (required), evaluationMetrics.

perspective_shifterA

Generate alternative viewpoints on a problem — by stakeholder or discipline — grounded in web research via Exa. Returns a markdown report with key facts and actionable insights per perspective. Requires EXA_API_KEY and ENABLE_RESEARCH_INTEGRATION=true and makes live network calls; it fails without them. To cross-check factual claims instead of generating viewpoints, use verify_research.

Inputs: problem (required), shiftType, includeActionable, currentPerspective, +1 more.

verify_researchA

Cross-verify a factual claim across multiple web sources via Exa and return a structured confidence verdict. Returns an object {verifiedResults, confidence:{score, verified, consistencyThreshold, details:{sourceCount, uniqueSources, conflictingClaims, ...}}} — not markdown — from cross-source Jaccard consistency and conflict detection. Requires EXA_API_KEY and ENABLE_RESEARCH_INTEGRATION=true and makes live network calls; it fails without them. To generate alternative viewpoints instead of verifying facts, use perspective_shifter.

Inputs: query (required), sources, verificationQueries, minConsistencyThreshold.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, though advanced_statistical_analysis and analyze_dataset overlap in descriptive stats, and logical_argument_analyzer/logical_fallacy_detector cover similar ground. However, the descriptions explicitly differentiate them, reducing confusion.

    Naming Consistency3/5

    Naming is inconsistent: some tools use 'advanced_' prefix (advanced_data_preprocessing, advanced_regression_analysis, advanced_statistical_analysis) while others do not. There is a mix of verb-object (analyze_dataset, verify_research) and noun-phrase (decision_analysis, hypothesis_testing) patterns, which lacks uniformity.

    Tool Count5/5

    12 tools is well-scoped for an analytical server covering statistics, machine learning, logic, and research verification. Each tool addresses a distinct analytical need without feeling excessive or sparse.

    Completeness4/5

    The tool set covers core analytical tasks including descriptive stats, hypothesis testing, regression, preprocessing, visualization, decision analysis, and research verification. Minor gaps exist (e.g., clustering, time series), but the provided tools form a coherent analytical workflow.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers