mcpField
M
Mcp Portfolio Ideas

Mcp Portfolio Ideas

Remote
github.com/MetaPartner-AIFinance0Updated 33w ago
Repository

About Mcp Portfolio Ideas

MCP Portfolio Ideas is a hosted remote MCP server for portfolio analysis and idea generation with LLM clients. It supports portfolio creation, risk analysis, benchmark comparisons, and strategy-based optimization, with settings recorded for review.

Key features

  1. 01Create and inspect equity portfolios
  2. 02Analyze risk, concentration, and sector exposure
  3. 03Compare portfolios against benchmarks
  4. 04Optimize portfolios with strategies and constraints
  5. 05Explore strategies, settings, and capabilities

Use cases

  1. 01Review a portfolio's risk and sector exposure
  2. 02Compare a portfolio with a benchmark
  3. 03Optimize a portfolio using a chosen strategy and asset-weight limits

MCP support

The service exposes portfolio management, analysis, comparison, and optimization tools to MCP clients over remote SSE transport. Connection requires custom HTTP headers.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://mcp-portfolio-ideas.metapartner.ai/mcp/sse/
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://mcp-portfolio-ideas.metapartner.ai/mcp/sse/Auth required

Tools

Details

From the project README

MCP Portfolio Ideas (Hosted Remote MCP Server)

mcp-portfolio-ideas is a hosted MCP server for portfolio understanding and idea generation with LLMs.

With the guest key below, your MCP client can:

  • create equity portfolios and inspect their allocations
  • analyze risk, concentration, sector exposure, and tail risk
  • optimize portfolios using the full no-input strategy suite
  • compare portfolios against benchmarks
  • explore available strategies and settings

The server endpoint is:

  • https://mcp-portfolio-ideas.metapartner.ai/mcp/sse/

Why Use It

Without MCP, portfolio analysis in chat is mostly unstructured text and guesses.

With this server, your LLM can call typed tools and return:

  • reproducible outputs
  • strategy-aware optimization
  • auditable settings used for each run
  • a consistent workflow from portfolio input to optimized result

Quick Start (LM Studio First)

LM Studio uses an mcp.json file with an mcpServers object.

  1. Open your LM Studio MCP config file.
  2. Add the server entry below under mcpServers.
  3. Restart/reload MCP servers in LM Studio.

Use this entry:

{
  "mcpServers": {
    "mcp-portfolio-ideas": {
      "url": "https://mcp-portfolio-ideas.metapartner.ai/mcp/sse/",
      "transport": "sse",
      "headers": {
        "X-API-Key": "mcp_portf_ideas_guest_512B6vEMEMUZqJorLW9JlEzQrpMagnlwi-95QkqvxZk"
      }
    }
  }
}

Copy-paste example file:

  • github/examples/lm-studio-mcp.json

Use In Other MCP Clients

Any MCP client that supports:

  • remote sse transport
  • custom HTTP headers

can use this same server. See:

  • github/examples/remote-mcp-entry.json

Tool Catalog

Current toolset:

Portfolio management
  1. create_portfolio
  • Purpose: create and store an equity portfolio from symbols or symbol→weight map.
  • Args:
    • portfolio: dict[str,float] or list[str]
    • portfolio_name (optional): str
  • Note: bond ETFs (BND, AGG, TLT, etc.) are not available at this level and will be excluded.
  • Access: guest + registered.
  1. list_portfolios
  • Purpose: list accessible portfolios and pre-built example portfolios.
  • Args:
    • examples (optional): bool
  • Access: guest + registered.
  1. get_portfolio_details
  • Purpose: inspect a portfolio's metrics, concentration, sector exposure, tail risk, or performance contributors.
  • Args:
    • portfolio_id: str
    • detail (optional): "metrics" | "concentration" | "sector_exposure" | "tail_risk" | "contributors" | "all" | "help"
  • Access: guest + registered.
  1. compare_benchmark_portfolios
  • Purpose: compare a portfolio's risk/return profile against a benchmark.
  • Args:
    • portfolio_name: str
    • benchmark_portfolio_name: str
  • Access: guest + registered.
  1. rename_portfolio
  • Purpose: rename an existing portfolio.
  • Args:
    • old_name: str
    • new_name: str
  • Access: registered users only.
  1. delete_portfolio
  • Purpose: delete a portfolio.
  • Args:
    • portfolio_id: str
  • Access: registered users only.
Optimization
  1. manage_optimization_params
  • Purpose: explore available strategies, constraints, and settings; validate proposed settings.
  • Args:
    • operation: "get" | "validate" | "set" | "strategies" | "hierarchy" | "constraints" | "profiles" | "help"
    • portfolio_name (optional): str
    • settings (optional): dict — used with validate or set
    • scope: "user" | "portfolio" (default: "user")
  • Access: guest + registered.
  1. optimize_portfolio
  • Purpose: optimize an existing portfolio and save result as optimized_{PORTFOLIO}_{TIMESTAMP}.
  • Args:
    • portfolio_name: str
    • strategy: strategy name or "auto"
    • constraints (optional): dict — e.g. {"max_weight_per_asset": 0.30}
    • strategy_parameters (optional): dict — e.g. {"risk_free_rate": 0.03}
    • save_as_preference (optional): bool
  • Access: guest + registered.
Discovery and feedback
  1. get_help
  • Purpose: task-focused help and prompt guidance.
  • Args:
    • topic (optional): str
  • Access: guest + registered.
  1. get_capabilities
  • Purpose: inspect strategies, constraints, library support, and role permissions.
  • Args: none.
  • Access: guest + registered.
  1. submit_feedback
  • Purpose: send product feedback / feature requests.
  • Args:
    • text: str
  • Access: guest + registered.

Available Strategies

Strategies available at guest level (no additional inputs required):

  • maximize_sharpe_ratio — maximize risk-adjusted return
  • minimize_volatility — minimize portfolio variance
  • maximize_return — maximize expected return
  • hrp — Hierarchical Risk Parity
  • herc — Hierarchical Equal Risk Contribution
  • equal_risk_contribution — equalize each asset's risk contribution
  • maximum_diversification — maximize the diversification ratio

Strategy aliases also accepted:

  • mean-variance, mean_variance, markowitz

Additional strategies (higher access levels):

  • target-return and target-risk strategies
  • CVaR-based strategies
  • Black-Litterman (requires forward-looking views)

Example User Interactions

Starter prompts for your LLM:

  1. "Show me the available example portfolios."
  2. "Create a portfolio named CoreTech with AAPL 40%, MSFT 35%, GOOGL 25%."
  3. "Show performance metrics and sector exposure for CoreTech."
  4. "Optimize CoreTech for maximum Sharpe ratio with max 30% per asset."
  5. "Optimize CoreTech using HRP — no inputs needed."
  6. "Compare CoreTech against example_sector_technology."

More prompt flows:

  • examples/prompt-playbook.md

Technical Implementation

High-level architecture:

  • FastAPI service with MCP mounted at /mcp
  • SSE transport at /mcp/sse/

Implementation highlights:

  • Optimization:
    • supports PyPortfolioOpt and RiskfolioLib
    • loads data via yfinance
  • Defaults:
    • 1 year horizon
    • mean-variance portfolio optimization
    • maximize Share ratio (relative return, scaled by associated risk)

Access Modes and Limits

  • The config above uses a guest key:
    • create equity portfolios, run the full optimization suite, analyze and compare
    • guests operate in a shared workspace — it is cleaned up nightly
  • For private portfolios and access to advanced strategies (target-return, CVaR, Black-Litterman), use a registered user key (ask us).

Disclaimer

This service is for informational and educational purposes, it does not constitute financial advice. Portfolio optimization is based on historical data which may not predict future performance. Past performance does not guarantee future results. All investments carry risk including potential loss of principal. Consult with a qualified financial advisor before making investment decisions. Calculations have been done using your assets percentages, but scaled to an account value of $100,000.00 for illustrative purposes. You are expected to learn and make up your mind from this analysis, not to to follow it blindly.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.