Proplist MCP Hello World

Proplist MCP Hello World

Minimal FastMCP server that lists worksheet names, IDs, and visibility from a SharePoint Excel workbook via Microsoft Graph.

Category
Visit Server

README

Proplist MCP Hello World

Minimal FastMCP server that proves this integration path:

MCP Client -> FastMCP Server -> Microsoft Graph -> SharePoint Excel Workbook

The server exposes one MCP tool, list_worksheets, which returns worksheet names, worksheet IDs, and visibility states from an existing Excel workbook stored in SharePoint.

This milestone intentionally does not create workbook sessions, read cell ranges, parse natural language, or interpret proposal data.

Project Tree

proplist-mcp-helloworld/
├── server.py
├── pyproject.toml
├── .env.example
├── .gitignore
└── README.md

Configuration

Create a local .env file from .env.example:

cp .env.example .env

Set every value:

TENANT_ID=...
CLIENT_ID=...
CLIENT_SECRET=...
DRIVE_ID=...
ITEM_ID=...
  • TENANT_ID: Microsoft Entra tenant identifier.
  • CLIENT_ID: application registration client identifier.
  • CLIENT_SECRET: application registration client secret.
  • DRIVE_ID: Microsoft Graph drive identifier containing the workbook.
  • ITEM_ID: Microsoft Graph item identifier for the workbook.

Do not commit .env. It is excluded by .gitignore.

Microsoft Graph Permission

The app registration must have this Microsoft Graph application permission:

Files.Read.All

Tenant admin consent must be granted outside this code. A 403 Forbidden response usually means the app can authenticate but does not have the required application permission or admin consent.

Install And Validate

uv sync
uv run python -m py_compile server.py

You can start the stdio server with either command:

uv run server.py
uv run proplist-mcp

To inspect the MCP server:

npx @modelcontextprotocol/inspector uv run server.py

Then call the list_worksheets tool in the Inspector.

Expected Tool Output

When the credentials and workbook identifiers are valid, the tool returns Markdown:

## Worksheets

| Name | Worksheet ID | Visibility |
|---|---|---|
| Proposals | {...} | Visible |
| Lookup | {...} | Hidden |

Do not treat this sample as proof that your workbook is reachable. The integration is live only when the tool returns real worksheet metadata from your configured workbook.

Risks And Troubleshooting

Risk Treatment
Missing Graph permission Add Microsoft Graph Files.Read.All as an application permission and grant tenant admin consent.
Incorrect DRIVE_ID or ITEM_ID The tool returns a 404 Not Found explanation. Verify the drive and item identifiers in Microsoft Graph.
Expired client secret Replace CLIENT_SECRET in Microsoft Entra ID and update the local .env file.
Secret leakage Keep .env out of Git. This project .gitignore excludes it.
Graph throttling The tool surfaces 429 Too Many Requests and includes Retry-After when Graph provides it.
Untested credentials uv sync and py_compile validate code only. Live integration validation requires real credentials and real worksheet metadata.

Known Scope Limits

  • Uses OAuth 2.0 client credentials only.
  • Uses Microsoft Graph app-only access only.
  • Does not use delegated, interactive browser, device-code, or username/password authentication.
  • Does not call workbook/createSession.
  • Does not read workbook ranges or tables.
  • Does not add storage, LLM calls, LangChain, LangGraph, agents, web UI, Docker, CI/CD, Key Vault, or telemetry.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured