An MCP server is a component of the Model Context Protocol (MCP), an open standard developed by Anthropic, the company behind Claude.
MCP is used for connecting AI models with external tools and data sources. It acts as a bridge, enabling AI applications to access and use external API.
Server url: https://docsmcp.ainvest.com. Make sure you configure your MCP client to pass the Authorization header the same way as you would call an API endpoint:
Claude offers direct connectivity to remote MCP servers with their more expensive subscription plan. With free version you can still use MCP servers, but they have to be run locally.
One of the easier ways is to use https://www.npmjs.com/package/mcp-remote, which is run locally and simply converts local calls to remote calls. Add this to Claude Desktop configuration.
Note that you still need to have nodejs and npx installed on your machine:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AInvest API","colors":{"primary":"#165DFF","light":"#165DFF","dark":"#3371FF"},"logo":{"light":"https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/logo.svg?fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=e99acb03f87d91a3d9dfb93e8db35f3c","dark":"https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/logo.svg?fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=e99acb03f87d91a3d9dfb93e8db35f3c"},"favicon":"https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/favicon.svg?fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=1efcf1c53005b2f92f7981b35be9abfe","navbar":{"primary":{"type":"button","label":"Get API key","href":"https://www.ainvest.com/business/widgets/developer-manage/"}},"footer":{"socials":{"x":"https://x.com/AInvestOfficial","discord":"https://discord.gg/44AMr7JMtD","youtube":"https://www.youtube.com/@ainvestofficial"}},"integrations":{"gtm":{"tagId":"GTM-WRGB7VD"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ainvest-8e114140","hasAudioNarration":false,"actualSubdomain":"ainvest-8e114140","customDomains":["docs.ainvest.com"],"gitSource":{"type":"github","owner":"ainvest-financial","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a741fe6e358a204d5bbf200","collectionId":"e3ef672e-7c03-460c-9e6e-953f6898272b","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a741fe6e358a204d5bbf200"},"entitlements":{},"buildId":"6ae926a44d41ff9f0fd8e1d3:success","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"API Reference","count":32},{"language":"default","tag":"API","count":28},{"language":"default","tag":"Widgets","count":9},{"language":"default","tag":"Securities","count":7},{"language":"default","tag":"Terminal","count":7},{"language":"default","tag":"Calendar","count":6},{"language":"default","tag":"Documentation","count":5},{"language":"default","tag":"News","count":4},{"language":"default","tag":"Use Terminal","count":4},{"language":"default","tag":"Analyst Ratings","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":""}],"page":{"pagePath":"docs/mcp-servers","slug":"/docs/mcp-servers","pageMetadata":{"title":"MCP servers","description":"Connecting AI chatbots to Ainvest financial data","icon":"microchip-ai","href":"/docs/mcp-servers"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connecting AI chatbots to Ainvest financial data\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedImage}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`An MCP server is a component of the Model Context Protocol (MCP), an open standard developed by Anthropic, the company behind Claude.\nMCP is used for connecting AI models with external tools and data sources. It acts as a bridge, enabling AI applications to access and use external API.`}),`\n`,_jsx(Frame,{caption:`Claude AI connected to Ainvest MCP`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/mcp-claude-congress.png?fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=8a50931ee93f644269ade9e4204192cd`,\"data-og-width\":`749`,width:`749`,\"data-og-height\":`561`,height:`561`,\"data-path\":`images/mcp-claude-congress.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/mcp-claude-congress.png?w=280\u0026fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=b129c4f0484d245dfc5bd7e28f0c675d 280w, https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/mcp-claude-congress.png?w=560\u0026fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=c89c44beb95182dddd0f3a1eb4e00476 560w, https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/mcp-claude-congress.png?w=840\u0026fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=006d4b8980dcdaa5d7ecaff340c69dd5 840w, https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/mcp-claude-congress.png?w=1100\u0026fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=87a0bc5c61362511d5a5f678061d9129 1100w, https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/mcp-claude-congress.png?w=1650\u0026fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=0a4634849590fd725e31484ce9994c00 1650w, https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/mcp-claude-congress.png?w=2500\u0026fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=4712905c0e061cdea578ef8897054fe0 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`remote-ainvest-mcp`,children:`Remote Ainvest MCP`}),`\n`,_jsxs(_components.p,{children:[`Server url: `,_jsx(_components.a,{href:`https://docsmcp.ainvest.com`,children:`https://docsmcp.ainvest.com`}),`. Make sure you configure your MCP client to pass the Authorization header the same way as you would call an API endpoint:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Authorization: Bearer {AUTH_TOKEN}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`configuring-claude-code`,children:`Configuring Claude Code`}),`\n`,_jsx(_components.p,{children:`With Claude Code command line client installed, run the following command:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:'claude mcp add --transport http ainvest https://docsmcp.ainvest.com --header \"Authorization: Bearer ${AUTH_TOKEN}\" -s user'})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`configuring-claude-desktop`,children:`Configuring Claude Desktop`}),`\n`,_jsxs(_components.p,{children:[`Claude offers direct connectivity to remote MCP servers with their more expensive subscription plan. With free version you can still use MCP servers, but they have to be run locally.\nOne of the easier ways is to use `,_jsx(_components.a,{href:`https://www.npmjs.com/package/mcp-remote`,children:`https://www.npmjs.com/package/mcp-remote`}),`, which is run locally and simply converts local calls to remote calls. Add this to Claude Desktop configuration.\nNote that you still need to have nodejs and npx installed on your machine:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"remote ainvest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"command\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"npx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"args\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mcp-remote\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://docsmcp.ainvest.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"--header\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"Authorization: Bearer ${AUTH_TOKEN}\"'})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"env\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"AUTH_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"your token goes here\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"MCP servers","description":"Connecting AI chatbots to Ainvest financial data","icon":"microchip-ai","href":"/docs/mcp-servers"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Remote Ainvest MCP","slug":"remote-ainvest-mcp","depth":2,"children":[]},{"title":"Configuring Claude Code","slug":"configuring-claude-code","depth":2,"children":[]},{"title":"Configuring Claude Desktop","slug":"configuring-claude-desktop","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ainvest-8e114140/fa9e6f23547e7b90/custom.js"],"subdomain":"ainvest-8e114140","siteName":"AInvest API","title":"MCP servers - AInvest API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-10-14T14:32:51.264Z","originalFileLocation":"docs/mcp-servers.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connecting AI chatbots to Ainvest financial data\">\u003cmeta data-mint-head name=\"application-name\" content=\"AInvest API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"MCP servers - AInvest API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connecting AI chatbots to Ainvest financial data\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AInvest API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ainvest.com/docs/mcp-servers\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ainvest-8e114140.mintlify.app/_mintlify/api/og/v2?division=Documentation\u0026amp;title=MCP+servers\u0026amp;description=Connecting+AI+chatbots+to+Ainvest+financial+data\u0026amp;theme=23ee5cd6cde7552c6a137e17\u0026amp;signature=f3b9a7da3800cfff65ea686f16110fa163eaaefe2f438e1096ec9082c0be0a5f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"MCP servers - AInvest API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connecting AI chatbots to Ainvest financial data\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ainvest-8e114140.mintlify.app/_mintlify/api/og/v2?division=Documentation\u0026amp;title=MCP+servers\u0026amp;description=Connecting+AI+chatbots+to+Ainvest+financial+data\u0026amp;theme=23ee5cd6cde7552c6a137e17\u0026amp;signature=f3b9a7da3800cfff65ea686f16110fa163eaaefe2f438e1096ec9082c0be0a5f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ainvest-8e114140/VvDQLzlgU3tmCCxb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AInvest API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#165DFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ainvest.com/docs/mcp-servers\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/mcp-servers.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ainvest.com/#organization\",\"name\":\"AInvest API\",\"url\":\"https://docs.ainvest.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ainvest-8e114140/DGzrPnVwd1HT0tfj/images/logo.svg?fit=max\u0026auto=format\u0026n=DGzrPnVwd1HT0tfj\u0026q=85\u0026s=e99acb03f87d91a3d9dfb93e8db35f3c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ainvest.com#website\",\"name\":\"AInvest API\",\"url\":\"https://docs.ainvest.com\",\"publisher\":{\"@id\":\"https://docs.ainvest.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ainvest.com/docs/mcp-servers#webpage\",\"url\":\"https://docs.ainvest.com/docs/mcp-servers\",\"name\":\"MCP servers\",\"description\":\"Connecting AI chatbots to Ainvest financial data\",\"dateModified\":\"2025-10-14T14:32:51.264Z\",\"isPartOf\":{\"@id\":\"https://docs.ainvest.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ainvest.com/docs/mcp-servers#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ainvest.com/docs/mcp-servers#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documentation\",\"item\":\"https://docs.ainvest.com/docs/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MCP servers\",\"item\":\"https://docs.ainvest.com/docs/mcp-servers\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ainvest.com/docs/mcp-servers#article\",\"headline\":\"MCP servers\",\"name\":\"MCP servers\",\"description\":\"Connecting AI chatbots to Ainvest financial data\",\"url\":\"https://docs.ainvest.com/docs/mcp-servers\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ainvest.com/docs/mcp-servers#webpage\"},\"dateModified\":\"2025-10-14T14:32:51.264Z\",\"publisher\":{\"@id\":\"https://docs.ainvest.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ainvest.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AInvest API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"AInvest API","nav":{"global":null,"tabs":[{"tab":"Terminal","pages":[{"title":"Terminal","href":"/terminal/overview"}]},{"tab":"Widgets","pages":[{"title":"Widgets","href":"/widgets/getting-started"}]},{"tab":"API","hidden":false,"groups":[{"group":"Documentation","icon":"book","pages":[{"title":"Getting started","description":"Financial data suite built by finance people for engineers. Simple steps to try now","icon":"rocket","href":"/docs/quickstart"},{"title":"MCP servers","icon":"microchip-ai","href":"/docs/mcp-servers"},{"title":"Changelog","description":"Product updates and release plan","icon":"clock-rotate-left","mode":"wide","href":"/docs/changelog"}]},{"group":"API Reference","icon":"square-terminal","pages":[{"group":"Securities","icon":"list-ul","pages":[{"title":"Securities search","sidebarTitle":"Search","openapi":"reference/securities/securities.yaml GET /securities/search","href":"/reference/securities/search"},{"title":"Company financials","sidebarTitle":"Financials","openapi":"reference/securities/securities.yaml GET /securities/stock/financials","href":"/reference/securities/stock-financials"},{"title":"Stock financial statements","sidebarTitle":"Statements","openapi":"reference/securities/securities.yaml GET /securities/stock/financials/statements","href":"/reference/securities/stock-statements"},{"title":"Stock earning reports","sidebarTitle":"Earnings","openapi":"reference/securities/securities.yaml GET /securities/stock/financials/earnings","href":"/reference/securities/stock-earnings"},{"title":"Stock dividends","sidebarTitle":"Dividends","openapi":"reference/securities/securities.yaml GET /securities/stock/financials/dividends","href":"/reference/securities/stock-dividends"},{"title":"ETF profile","sidebarTitle":"ETF profile","openapi":"reference/securities/securities.yaml GET /securities/etf/profile","href":"/reference/securities/etf-profile"},{"title":"ETF holdings","sidebarTitle":"ETF holdings","openapi":"reference/securities/securities.yaml GET /securities/etf/holdings","href":"/reference/securities/etf-holdings"}]},{"group":"Calendar","icon":"calendar","pages":[{"title":"Earnings calendar","sidebarTitle":"Earnings","openapi":"reference/calendar/calendar.yaml GET /calendar/earnings","href":"/reference/calendar/earnings"},{"title":"Earnings backtesting","sidebarTitle":"Earnings backtesting","openapi":"reference/calendar/calendar.yaml GET /calendar/earnings/backtesting","href":"/reference/calendar/earnings-backtesting"},{"title":"Dividends calendar","sidebarTitle":"Dividends","openapi":"reference/calendar/calendar.yaml GET /calendar/dividends","href":"/reference/calendar/dividends"},{"title":"Economic events calendar","sidebarTitle":"Economics","openapi":"reference/calendar/calendar.yaml GET /calendar/economics","href":"/reference/calendar/economics"},{"title":"IPO calendar","sidebarTitle":"IPO","openapi":"reference/calendar/calendar.yaml GET /calendar/ipo","href":"/reference/calendar/ipo"},{"title":"Splits calendar","sidebarTitle":"Corporate actions","openapi":"reference/calendar/calendar.yaml GET /calendar/corporateactions","href":"/reference/calendar/corporateactions"}]},{"group":"Market Data","icon":"chart-candlestick","pages":[{"title":"Candles","sidebarTitle":"Candles","openapi":"reference/marketdata/marketdata.yaml GET /marketdata/candles","href":"/reference/marketdata/candles"},{"title":"Trades","sidebarTitle":"Trades","openapi":"reference/marketdata/marketdata.yaml GET /marketdata/trades","href":"/reference/marketdata/trades"}]},{"group":"News","icon":"newspaper","pages":[{"title":"News wires","openapi":"reference/news/news.yaml GET /news/v1/wire/page/history","href":"/reference/news/wires"},{"title":"Wire content","openapi":"reference/news/news.yaml GET /news/v1/wire/info/{content_id}","href":"/reference/news/wires-content"},{"title":"Articles","openapi":"reference/news/news.yaml GET /news/v1/article/page/history","href":"/reference/news/articles"},{"title":"Articles content","openapi":"reference/news/news.yaml GET /news/v1/article/info/{content_id}","href":"/reference/news/articles-content"}]},{"group":"Ownership","icon":"hand-holding-dollar","pages":[{"title":"Insider trades","sidebarTitle":"Insider trades","openapi":"reference/ownership/ownership.yaml GET /ownership/insider","href":"/reference/ownership/insider"},{"title":"US Congress trades","sidebarTitle":"US Congress trades","openapi":"reference/ownership/ownership.yaml GET /ownership/congress","href":"/reference/ownership/congress"}]},{"group":"Analyst Ratings","icon":"star","pages":[{"title":"Analyst ratings","sidebarTitle":"Analyst ratings basics","mode":"wide","href":"/reference/analysis-ratings"},{"title":"Average rating","sidebarTitle":"Get average rating","openapi":"reference/analysis-ratings/analysis-ratings.yaml GET /analysis-ratings/consensus","href":"/reference/analysis-ratings/consensus"},{"title":"All ratings","sidebarTitle":"Get ratings history","openapi":"reference/analysis-ratings/analysis-ratings.yaml GET /analysis-ratings/history","href":"/reference/analysis-ratings/history"}]},{"title":"Codes","href":"/reference/codes"}]}]}]},"basePath":"","title":"MCP servers - AInvest API","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BdiBGm0H.js","DynamicMarkdown-CbqEDjbV.js","zoom-image-lightbox-CvtNkYOX.js","lightbox-handle-r17bVUz3.js"]}