get_accountsLABSCO SUMMARY
Portfolio questions answered from the broker's own data.
Three reads cover the ground: which accounts exist, what one of them holds, and what the fundamentals look like behind a ticker in it. Nothing here places an order — it is the position and the company behind it, brought to where you are asking.
What it is
A Symfony console application that speaks MCP over stdio and calls the T-Invest REST API. It runs locally or as a Docker image, and points at either the production or the sandbox endpoint.
What you get
- The list of accounts on your T-Invest login
- The portfolio for the connected account, filterable by ticker
- Fundamental indicators for companies you name by ticker
Requirements
A T-Invest API token and the account number the server should connect to, plus the REST endpoint — production or sandbox. Run it with Docker, or locally with PHP 8.3 or higher and Composer.
Setup effort
One command plus a key — docker run -i --rm -e APP_T_INVEST_BASE_URL -e APP_T_INVEST_TOKEN -e APP_T_INVEST_ACCOUNT_ID prikotov/t-invest-mcp-server:latest bin/server
USE CASES
Seeing what you actually hold
List the accounts, then read the portfolio for the one you mean. Filtering by ticker narrows it when the account is large.
Checking the company behind a position
Take the tickers out of the portfolio and read the fundamentals for them, so a holding is judged on the business rather than on its recent price.
Comparing fundamentals across tickers you are weighing
Pass several tickers at once and read the indicators side by side, instead of opening a page per company.
3 tools
Listed in project docs. Your client may show a different list.
get_portfolioget_asset_fundamentalsBEFORE YOU INSTALL
What to know first
Tools you get
3 tools named in the project's documentation.
Requires
- docker on PATH
- APP_T_INVEST_BASE_URL in your environment
- APP_T_INVEST_TOKEN in your environment
- APP_T_INVEST_ACCOUNT_ID in your environment
INSTALLATION
Connect your client
Add the block to your client, or run the command directly.
Server setup
Configuration file
{
"mcpServers": {
"t-invest": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"APP_T_INVEST_BASE_URL",
"-e",
"APP_T_INVEST_TOKEN",
"-e",
"APP_T_INVEST_ACCOUNT_ID",
"prikotov/t-invest-mcp-server:latest",
"bin/server"
],
"env": {
"APP_T_INVEST_BASE_URL": "<YOUR_APP_T_INVEST_BASE_URL>",
"APP_T_INVEST_TOKEN": "<YOUR_TOKEN>",
"APP_T_INVEST_ACCOUNT_ID": "<YOUR_ACCOUNT_ID>"
}
}
}
}<YOUR_APP_T_INVEST_BASE_URL> is the T-Invest REST address: https://invest-public-api.tinkoff.ru/rest/ for production, or https://sandbox-invest-public-api.tinkoff.ru/rest/ for the sandbox
docker
docker run -i --rm -e APP_T_INVEST_BASE_URL -e APP_T_INVEST_TOKEN -e APP_T_INVEST_ACCOUNT_ID prikotov/t-invest-mcp-server:latest bin/server