Molclaw Scp Server logo

Molclaw Scp Server

Organization
InternScience
molclaw-scp-server

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

Overview

PublisherInternScience
RepositoryMolClaw
Skill namemolclaw-scp-server
Stars
39
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by InternScience on GitHub. Read the source before you install it.

Installation

Install the Molclaw Scp Server AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/InternScience/MolClaw/tree/main/skills/L1_tools/molclaw-scp-server
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Molclaw Scp Server in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Molclaw Scp Server on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Molclaw Scp Server is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Molclaw Scp Server AI skill do?

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

Why use Molclaw Scp Server on TypingMind?

Because you install it once and use it with any model. Molclaw Scp Server is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Molclaw Scp Server in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/InternScience/MolClaw/tree/main/skills/L1_tools/molclaw-scp-server. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Molclaw Scp Server?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Molclaw Scp Server?

As many as you like. As long as a model supports skills, you can use Molclaw Scp Server with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Molclaw Scp Server AI skill free?

Yes. It is published on GitHub by InternScience under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇