ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

StockSharp Odysseus

โดย StockSharpรุ่น 1.0.2i★ –iรันบนเครื่อง
ชื่อใน registryio.github.StockSharp/odysseus

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Generate, compile, validate and backtest StockSharp trading strategies through local MCP.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: บัญชี การเงิน และภาษี
  • ต้องใส่ค่าเหล่านี้: ODYSSEUS_PROJECTS_ROOT, ODYSSEUS_MARKET_DATA

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "odysseus": {
      "command": "dnx",
      "args": [
        "StockSharp.Odysseus.Mcp",
        "--yes"
      ],
      "env": {
        "ODYSSEUS_PROJECTS_ROOT": "ใส่ค่าของคุณ",
        "ODYSSEUS_MARKET_DATA": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add odysseus --env ODYSSEUS_PROJECTS_ROOT='ใส่ค่าของคุณ' --env ODYSSEUS_MARKET_DATA='ใส่ค่าของคุณ' -- dnx StockSharp.Odysseus.Mcp --yes

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "odysseus": {
      "command": "dnx",
      "args": [
        "StockSharp.Odysseus.Mcp",
        "--yes"
      ],
      "env": {
        "ODYSSEUS_PROJECTS_ROOT": "ใส่ค่าของคุณ",
        "ODYSSEUS_MARKET_DATA": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "odysseus": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "StockSharp.Odysseus.Mcp",
        "--yes"
      ],
      "env": {
        "ODYSSEUS_PROJECTS_ROOT": "ใส่ค่าของคุณ",
        "ODYSSEUS_MARKET_DATA": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • ODYSSEUS_PROJECTS_ROOT จำเป็น env
    Workspace directory for project JSON files and research artifacts. Use one MCP process per workspace.
  • ODYSSEUS_MARKET_DATA จำเป็น env
    Directory for shared historical market data.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub StockSharp ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด บัญชี การเงิน และภาษีi

  • ดาวมากกว่า 0% ของอีก 2907 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 53% ของอีก 2907 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 2907 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

StockSharp Odysseus ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: ODYSSEUS_PROJECTS_ROOT, ODYSSEUS_MARKET_DATA

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.0.2) เข้า registry 29 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี .NET ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Finance Toolkit, SolidInvoice, Korea Tax Calculator

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Finance Toolkit

โดย JerBouma

500+ transparent financial methods calculated from raw statements, not third-party endpoints.

บนเครื่องหรือคลาวด์★ 5,496MITอัปเดต เมื่อวาน
ติดตั้ง

SolidInvoice

โดย SolidInvoice

Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.

รันบนคลาวด์★ 981MITอัปเดต 8 วันที่ผ่านมา
ติดตั้ง

Korea Tax Calculator

โดย UpstageAI

Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.

รันบนเครื่อง★ 97MITอัปเดต เมื่อวาน
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Odysseus

An MCP server that turns any AI agent into a quantitative researcher — and holds it to the discipline that makes a result mean something.

The C# namespaces are rooted at StockSharp.Odysseus. The MCP server reports StockSharp.Odysseus as its name and StockSharp Odysseus as its display title; the client configuration below uses odysseus.

For MCP Registry publication and Claude Desktop extensions, see MCP distribution.

You run it locally beside your own agent. It downloads real market history into one StockSharp storage every project shares, measures what is actually in it, translates a formal hypothesis into a real StockSharp Strategy class, compiles it, backtests it with costs, searches its parameters, and reports what every run came to.

It measures. It does not judge. There is no score in it, no threshold, no accept-or-reject. Whether a drawdown is bearable or a return is worth having depends on what you are researching, and that is your call, not a server's.


Why an MCP server

Because the agent is the researcher, and it already exists.

A backtesting product with a chat window has to ship a model, a conversation, an interface, and an opinion about what a good strategy is. This ships none of them. Your agent brings the reasoning; this brings the parts an agent is bad at on its own — real data that cannot quietly change under a result, a translator that turns a hypothesis into the same code every time, an emulator that charges for the spread, and a slice of history it is not allowed to look at until the end.

That last one is the point. An agent asked to find a profitable strategy will find one. The only thing that separates a finding from a search is data the search could not reach.


What it does

create_project

→ import_history real bars, into the shared storage → analyze_market what the instrument does, before you propose anything for it → propose_spec the hypothesis, as a formal document → build_candidate translated to C#, compiled, hashed → evaluate_candidate six fixed runs, reported in full → measure_on_closed_data once, against data nobody was allowed to see → complete_strategy you decide; the server keeps the code and every number behind it

Forty-eight tools in all: projects, connectors, data, instrument lookup, hypotheses, candidates and a check of whether one gives the same answer twice, backtests, evaluations, a seeded genetic search and a walk-forward over it, the closed-data measurement, paper trading against a broker's paper account, the record of what you completed, and — off unless an operator turns it on — installing StockSharp products on the machine the server runs on.

analyze_market measures the project's dataset — how much the instrument moves, whether its moves continue or come back, and what followed the events a strategy would trade. Read it before proposing anything: a breakout hypothesis on an instrument whose breakouts led nowhere costs a generation of candidates to disprove, and these numbers say so beforehand.

The data discipline

Bars live in one StockSharp market-data storage that every project shares — a folder of its own, ODYSSEUS_MARKET_DATA (./market-data by default). A project does not copy them: its dataset is a symbol list, a candle length and a range, and runs read that range out of the shared storage. A run is recorded by what it read — instrument, candle length, from and to — so importing the same range again finds every run already made over it.

A dataset is cut by time into three parts: the first 60% of the range to form a hypothesis on, the next 20% to measure it on, and the last 20% closed. describe_split says where each part lies; what keeps the closed part closed is that no tool hands out its bars and that it is measured once — not once per project, but once per stretch of history, recorded in a ledger beside the projects, because starting a second project and importing the same dates does not make the answer unseen. The ledger checks and records a measurement in one step, so two projects asking at the same moment cannot both get through.

What a measurement looks like

Six runs, always the same six: the development slice, the validation slice, the validation slice again with costs half again as high, and the development slice cut into three consecutive windows run with the same numbers. Profit, drawdown, trade count, win rate, exposure, what share of the result rests on a single trade, the spread between the windows, what survived the higher costs. No verdict — that part is yours.

The three windows ask whether the result is spread over the history or made in one stretch of it. They do not choose numbers per window; run_walk_forward does that — it searches the declared numbers on one stretch, tests the choice on the stretch after it, and steps forward window by window.

A signal is acted on when its bar closes, and the order fills at the price the market stood at then. Whether a result survives an entry that lands a bar later — what it is worth without the price the signal was seen at — is asked separately, by running run_backtest under the entryOneBarLater scenario beside the baseline and costsX15 ones.


Running it

From NuGet

With the .NET 10 SDK, install either tool from NuGet:

PackageCommandWhat it does
StockSharp.Odysseus.Mcpodysseus-mcpMCP server for an AI agent
StockSharp.Odysseus.CliodysseusThe same research tools from a terminal
dotnet tool install --global StockSharp.Odysseus.Mcp

dotnet tool install --global StockSharp.Odysseus.Cli

Each package includes the worker and runner in their own folders, so either tool can be installed independently. The MCP connection below can use "command": "odysseus-mcp" instead of a path to the server executable.

From a release

You need the .NET 10 runtime. Download the archive for your system from the releases - Windows x64, Linux x64 or macOS on Apple silicon - and unpack it. The folder holds the server as Odysseus.Server and the command line as odysseus, with the worker and the runner they start in folders beside them, so it is moved and removed as one. On macOS, clear the flag the browser puts on a download before the first start: xattr -dr com.apple.quarantine odysseus.

From source

You need the .NET 10 SDK.

git clone https://github.com/StockSharp/StockSharp.git "StockSharp (GitHub)"

git clone https://github.com/StockSharp/Odysseus.git cd Odysseus dotnet build -c Release

The trading platform is built from source, so its repository is cloned beside this one, into the folder the build looks for it in. To keep it somewhere else, name that place as StockSharpSource in a Directory.Build.local.props beside Directory.Build.props.

That produces src/Odysseus.Server/bin/Release/net10.0/Odysseus.Server.exe, and the command line beside it as src/Odysseus.Cli/bin/Release/net10.0/odysseus.exe.

Connecting an agent

Point your agent at the server over stdio:

{

"mcpServers": { "odysseus": { "command": "path/to/Odysseus.Server.exe", "env": { "ODYSSEUS_PROJECTS_ROOT": "path/to/where/projects/should/live", "ODYSSEUS_MARKET_DATA": "path/to/the/shared/market-data/storage" } } } }

Then ask it to import_demo_dataset and work through a hypothesis. The bundled dataset is generated, so nothing measured on it says anything about any market — it is there to prove the machinery runs without an account.

Workspace files

One MCP process owns one workspace, set by ODYSSEUS_PROJECTS_ROOT. Stop that process before using research commands in the CLI against the same folder. Independent workspaces can run independently. Requests within one process are serialized when they update metadata.

Projects, budgets, candidates, runs, measurements and audit events are readable JSON files. Record file names include their insertion order; updates keep the same name. Scoped operation keys live in operations.json, and spent closed history in closed-history.json, beside the project folders. These journals survive restarts, so restarting the server or creating another project does not reset research limits or make a closed stretch available again. No database service or native SQLite library is needed.

Specifications, generated source, assemblies and completed strategies remain files inside their project. Market history stays in StockSharp's file storage at ODYSSEUS_MARKET_DATA; it is not copied into project metadata. Each trading runner keeps its own files and can outlive the MCP process.

For a workspace created by an older SQLite version, see the one-time migration.

With real data

Real data comes through a StockSharp connector, and the server is not compiled against one. It cannot be: a running server cannot compile itself, so the connector arrives as a published NuGet package that the server downloads and loads into a context of its own. Which one is yours to say.

Put the credentials that connector takes in a file:

key: ...

secret: ...

and point ODYSSEUS_BROKER_KEYS at it. A path rather than the values themselves, because a value in the environment is inherited by every child process — including the worker that runs candidates — and shows up in a process listing.

Then say which connector, either in a file that ODYSSEUS_BROKER_CONNECTOR points at:

{ "packageId": "StockSharp.Binance", "settings": {} }

or, while the server runs, with list_connectors, describe_connector and select_connector. describe_connector reports every setting a package accepts and the values each one allows, so a choice can be written from what the connector says about itself rather than from documentation.

Two more variables bound what may be downloaded, because all three of those tools run downloaded code — what a connector is for and whether it can be told it is on a paper account are properties of an instance, so reading a package builds the adapter inside it: ODYSSEUS_CONNECTOR_SOURCES (the feeds, https://api.nuget.org/v3/index.json by default) and ODYSSEUS_CONNECTOR_ALLOW (the package name prefixes, StockSharp. by default). Both are start-up decisions and neither is reachable from a tool. An allow-list that was set and came out empty allows nothing rather than everything. A server started with --hosted refuses all three tools: its connector is chosen when the process starts.

Without a connector everything else still works: the demo dataset, analyze_market, every backtest, the closed-data measurement and complete_strategy all read history that is already imported. describe_server says which half of the product you have.

History can also come from a remote StockSharp storage server (Hydra) instead of the broker. Name it in a file that ODYSSEUS_REMOTE_STORAGE points at:

{ "address": "10.0.0.5:5002", "login": "...", "password": "..." }

import_history then reads bars from that server into the shared local storage, and every run reads them locally from there. The server is reached through the `StockSharp.F

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx