Molclaw Scp Serverのロゴ

Molclaw Scp Server

組織
InternScience
molclaw-scp-server

Use the configured MolClaw MCP tools through Claude; direct Python SDK access is an optional fallback for standalone scripts.

概要

公開者InternScience
リポジトリMolClaw
スキル名molclaw-scp-server
スター
39
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    InternScienceがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルMolclaw Scp ServerをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/InternScience/MolClaw/tree/main/skills/L1_tools/molclaw-scp-server
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/InternScience/MolClaw.git /tmp/MolClaw
mkdir -p .claude/skills
cp -r /tmp/MolClaw/skills/L1_tools/molclaw-scp-server .claude/skills/molclaw-scp-server
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMolclaw Scp Serverを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にMolclaw Scp Serverを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Molclaw Scp Serverは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

SCP (Science Context Protocol) is an open-source standard protocol designed to accelerate scientific discovery by building a global collaboration network for autonomous scientific agents, connecting heterogeneous scientific resources (software tools, AI models, datasets, workflow engines, lab instruments, etc.).

Claude MCP usage

The MolClaw Claude runner configures the molclaw-scp MCP client in each sample workspace. Call the tool names and parameter schemas exposed in Claude's live tool list; do not write a Python MCP client inside an agent answer merely to invoke a listed tool. The client keeps a long-running server job alive through polling and retries recoverable forwarding interruptions with the same job ID. It also supports local-path upload/download when the file-transfer tool schema advertises local_file_path; see molclaw-file-transfer. A server-side path is not a local file. The public SCP service retains its original Base64 API.

Before running Claude with skills, install the public client's JavaScript dependencies once with npm install --prefix molclaw_run/mcp_adapter, use Node 22.22 or newer, and export SCP_HUB_API_KEY in the runner's environment. The runner's per-sample MCP config inherits that credential without writing it to disk and limits local file access to that sample's workspace. MOLCLAW_NODE_BIN can select a different Node executable. --claude-mode non does not inject the MolClaw MCP client.

The Python examples below are for standalone scripts that connect directly to SCP. They bypass the Claude stdio client and its polling, recovery, and local-path extensions.

1. Server Definition

If MCP environment. is not installed, please run pip install mcp.

Configure the credential through the repository environment template. Never write an API key into a skill, source file, command example, or committed configuration file.

bash
cd /path/to/MolClaw
cp .env.template .env
# Set SCP_HUB_API_KEY in .env, then load it into the current shell:
set -a
source .env
set +a

The server is defined as below:

python
import json
import os
from mcp.client.streamable_http import streamablehttp_client
from mcp import ClientSession

DrugSDA_Tool_SERVER_URL = "https://scp.intern-ai.org.cn/api/v1/mcp/2/DrugSDA-Tool"

class DrugSDAClient:    
    def __init__(self, server_url: str):
        self.server_url = server_url
        self.session = None
        self.api_key = os.environ.get("SCP_HUB_API_KEY")
        if not self.api_key:
            raise RuntimeError(
                "SCP_HUB_API_KEY is not set. Copy .env.template to .env, "
                "set the key, and load .env into the current shell."
            )
        
    async def connect(self):
        print(f"server url: {self.server_url}")
        try:
            self.transport = streamablehttp_client(
                url=self.server_url,
                headers={"SCP-HUB-API-KEY": self.api_key}
            )
            self.read, self.write, self.get_session_id = await self.transport.__aenter__()
            
            self.session_ctx = ClientSession(self.read, self.write)
            self.session = await self.session_ctx.__aenter__()

            await self.session.initialize()
            session_id = self.get_session_id()
            
            print(f"✓ connect success")
            return True
            
        except Exception as e:
            print(f"✗ connect failure: {e}")
            import traceback
            traceback.print_exc()
            return False
    
    async def disconnect(self):
        try:
            if self.session:
                await self.session_ctx.__aexit__(None, None, None)
            if hasattr(self, 'transport'):
                await self.transport.__aexit__(None, None, None)
            print("✓ already disconnect")
        except Exception as e:
            print(f"✗ disconnect error: {e}")
    
    def parse_result(self, result):
        try:
            if hasattr(result, 'content') and result.content:
                content = result.content[0]
                if hasattr(content, 'text'):
                    return json.loads(content.text)
            return str(result)
        except Exception as e:
            return {"error": f"parse error: {e}", "raw": str(result)}

2. Server Connection

The initialization and shutdown of the MCP server are shown below:

python
## When start, connect the MCP server
client = DrugSDAClient(DrugSDA_Tool_SERVER_URL)
if not await client.connect():
    print("connection failed")
    return

## When finish, disconnect the MCP server
await client.disconnect() 

Note: The deployed MolClaw tool endpoint is https://scp.intern-ai.org.cn/api/v1/mcp/2/DrugSDA-Tool.

よくある質問

AIスキル「Molclaw Scp Server」では何ができますか?

Use the configured MolClaw MCP tools through Claude; direct Python SDK access is an optional fallback for standalone scripts.

TypingMindでMolclaw Scp Serverを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Molclaw Scp Serverはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMolclaw Scp Serverをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/InternScience/MolClaw/tree/main/skills/L1_tools/molclaw-scp-serverを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Molclaw Scp Serverを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Molclaw Scp Serverは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMolclaw Scp Serverを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Molclaw Scp Server」は無料ですか?

はい。InternScienceがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇